import java.util.Scanner; public class No_272 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = (sc.nextInt() == 0) ? 1 : 0; System.out.println(i); sc.close(); } }