import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ static Main byakko = new Main(); static BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args)throws IOException{ int x = byakko.Input(); if(x == 0) System.out.println(1); else System.out.println(0); reader.close(); } public int Input()throws IOException{ return Integer.parseInt(reader.readLine()); } }