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