import java.io.*; public class No272 { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int input = Integer.parseInt(br.readLine()); switch(input){ case 0: System.out.println(1); break; case 1: System.out.println(0); break; } }catch(IOException e){ e.getStackTrace(); }catch(NumberFormatException e){ e.getStackTrace(); } } }