import java.util.*;class M{ public static void main(String[] args) {Scanner s=new Scanner(System.in);System.out.println((s.nextInt()==1)?0:1);}}