//package Test;

import java.util.*;

public class Main {

    static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    }
} import java.util.*; util.* java public class Main {

    static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    } main {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int t = scanner.nextInt(); t scanner.nextInt() scanner.nextInt scanner Solution solution = new Solution(); solution new Solution() solution.solve(t) solution.solve solution t String[] args args static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    } Solution void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        } solve {
            System.out.println(t == 1 ? 0 : 1);
        } System.out.println(t == 1 ? 0 : 1) System.out.println System.out System System.out t == 1 ? 0 : 1 t == 1 t 1 0 1 int t t public class Main {

    static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    }
} public class Main {

    static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    }
} Main
//package Test;

import java.util.*;

public class Main {

    static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    }
}
