import java.util.Scanner; class paiza { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.nextLine(); if (str.equals("1")) { System.out.println("0"); } if (str.equals("0")) { System.out.println("1"); } } }