import java.util.*;

public class Main {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
} Main public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    } main {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    } int input = 0; input 0 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) input = sc.nextInt() input sc.nextInt() sc.nextInt sc if (input == 0)
            System.out.println(1); input == 0 input 0 System.out.println(1) System.out.println System.out System System.out 1 if (input == 1)
            System.out.println(0); input == 1 input 1 System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
} public class Main {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.nextInt();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
}
