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