import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000272_Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println(1 - Integer.parseInt(br.readLine())); } }