import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    } main {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    } BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in)); buffer new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int x = Integer.parseInt(buffer.readLine()); x Integer.parseInt(buffer.readLine()) Integer.parseInt Integer buffer.readLine() buffer.readLine buffer if (x == 0)
            System.out.println(1);
        else
            System.out.println(0); x == 0 x 0 System.out.println(1) System.out.println System.out System System.out 1 System.out.println(0) System.out.println System.out System System.out 0 System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    }
} public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    }
} Main
import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args) throws Exception {
        BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb = new StringBuilder();
        int x = Integer.parseInt(buffer.readLine());
        if (x == 0)
            System.out.println(1);
        else
            System.out.println(0);
        System.out.println(sb);
    }
}
