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