#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
double d1 = 1;
double d2 = 1 + 1.110223024625156e-16;
double d3 = 1 + 1.110223024625157e-16;
cout << (d2 == d1) << endl;
cout << (d3 == d1) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgZG91YmxlIGQxID0gMTsKICAgIGRvdWJsZSBkMiA9IDEgKyAxLjExMDIyMzAyNDYyNTE1NmUtMTY7CiAgICBkb3VibGUgZDMgPSAxICsgMS4xMTAyMjMwMjQ2MjUxNTdlLTE2OwogICAgY291dCA8PCAoZDIgPT0gZDEpIDw8IGVuZGw7CiAgICBjb3V0IDw8IChkMyA9PSBkMSkgPDwgZW5kbDsKICAgIHJldHVybiAwOwp9