#include int main(){ int c = getchar() != EOF; printf("%d", c); return 0; }