#include <iostream>
#include <utility>
#include <tuple>
using namespace std;

class Foo{
	int x, y;
public:
	Foo(int x, int y):x(x),y(y){}
	bool operator<(const Foo& other)const{
		return tie(x,y) < tie(other.x, other.y);
	}
};

int main() {
	// your code goes here
	Foo a(1,2), b(2,4);
	cout << (a < b);
	return 0;
}