package jp.co.kokou.sample.no272; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { try (InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is)) { String value = br.readLine(); int x = Integer.parseInt(value); switch (x) { case 0: System.out.println(1); break; case 1: System.out.println(0); break; default: } } catch (IOException e) { } } }