import java.util.Scanner;

public class Main {
    public int operateNot(int x) {
        if (x == 0) return 1;
        else return 0;
    }

    public static void main(String[] args) throws Exception {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public int operateNot(int x) {
        if (x == 0) return 1;
        else return 0;
    }

    public static void main(String[] args) throws Exception {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    }
} Main public int operateNot(int x) {
        if (x == 0) return 1;
        else return 0;
    } operateNot {
        if (x == 0) return 1;
        else return 0;
    } if (x == 0) return 1;
        else return 0; x == 0 x 0 return 1; 1 return 0; 0 int x x public static void main(String[] args) throws Exception {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    } main {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    } Main solution = new Main(); solution new Main() Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int answer = solution.operateNot(x); answer solution.operateNot(x) solution.operateNot solution x System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
    public int operateNot(int x) {
        if (x == 0) return 1;
        else return 0;
    }

    public static void main(String[] args) throws Exception {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    }
} public class Main {
    public int operateNot(int x) {
        if (x == 0) return 1;
        else return 0;
    }

    public static void main(String[] args) throws Exception {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    }
} Main
import java.util.Scanner;

public class Main {
    public int operateNot(int x) {
        if (x == 0) return 1;
        else return 0;
    }

    public static void main(String[] args) throws Exception {
        Main solution = new Main();

        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int answer = solution.operateNot(x);
        System.out.println(answer);
    }
}
