import java.util.*; class Question272 { public static void main(String[] str) { Scanner scan = new Scanner(System.in); int x = scan.nextInt(); System.out.println(x==0 ? 1 : 0); } }