import java.util.*; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); String ans; if (scan.next().equals("0")) ans = "1"; else ans = "0"; System.out.println(ans); } }