import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int x = in.nextInt(); if(x == 1) System.out.println(0); if(x == 0) System.out.println(1); } }