#include<iostream> #include<cstdio> using namespace std; int main() { printf("%d\n",getchar() != EOF); return 0; }