package yukicoder; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); try { String line = buff.readLine(); if(line.equals("1")){ System.out.println("0"); }else{ System.out.println("1"); } } catch (Exception e) { e.getStackTrace(); } } }