import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        if (x >= 0 && x <= 1) {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } else {
            System.out.println("error");
        }
    }

} import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        if (x >= 0 && x <= 1) {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } else {
            System.out.println("error");
        }
    }

} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        if (x >= 0 && x <= 1) {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } else {
            System.out.println("error");
        }
    } main {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        if (x >= 0 && x <= 1) {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } else {
            System.out.println("error");
        }
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int x = in.nextInt(); x in.nextInt() in.nextInt in if (x >= 0 && x <= 1) {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } else {
            System.out.println("error");
        } x >= 0 && x <= 1 x >= 0 x 0 x <= 1 x 1 {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            } x == 0 x 0 {
                System.out.println(1);
            } System.out.println(1) System.out.println System.out System System.out 1 if (x == 1) {
                System.out.println(0);
            } x == 1 x 1 {
                System.out.println(0);
            } System.out.println(0) System.out.println System.out System System.out 0 {
            System.out.println("error");
        } System.out.println("error") System.out.println System.out System System.out "error" String[] args args
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int x = in.nextInt();
        if (x >= 0 && x <= 1) {
            if (x == 0) {
                System.out.println(1);
            } else if (x == 1) {
                System.out.println(0);
            }
        } else {
            System.out.println("error");
        }
    }

}
