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