#include int main(){ //input int X; scanf("%d",&X); //output if (X == 0){ printf("%d\n",1); }else{ printf("%d\n",0); } return 0; }