#include <iostream>
using namespace std;
int main() {
bool t[5];
for(int i = 0; i < 5; i++)
t[4 - i] = !(i % 2);
cout << t[0] && t[2];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKICAgICAgICBib29sIHRbNV07CiAgICAgICAgZm9yKGludCBpID0gMDsgaSA8IDU7IGkrKykKICAgICAgICAgICAgdFs0IC0gaV0gPSAhKGkgJSAyKTsKICAgICAgICBjb3V0IDw8IHRbMF0gJiYgdFsyXTsKICAgICAgICByZXR1cm4gMDsKfQoK