#include <iostream>
using namespace std;

int main() {
	long long x = 1LL << 59;
	cout << ((double) (x) == (double) (x - 1)) << endl;
}