int main() { int number = 0; scanf("%d", &number); printf("%d\n", (number + 1) % 2); return 0; }