#include <iostream>
using namespace std;

class Cl {
int a;	
	
public:
Cl():a(0){}

Cl& operator=(const Cl &c) {
	cout<<"==="<<endl;
	return *this;
}
Cl& operator=(const int &c) {
	cout<<"===1"<<endl;
	a=c;
	return *this;
}

int& operator[](const int &c) {
	cout<<"[]"<<a<<endl;
	return a;
}
	
};


int main() {
	// your code goes here
	
	Cl obj;
	obj = 2;
	obj[1];
	return 0;
}