import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); int X = Integer.parseInt(reader.readLine()); if(X==0){ System.out.println(1); } else { System.out.println(0); } } }