import java.util.Scanner; class no272{ public static void main(String[] args) { Scanner stdIn=new Scanner(System.in); short x=stdIn.nextShort(); if(x==1) System.out.println('0'); else System.out.println('1'); } }