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

class Main{
    static PrintWriter out;
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        out=new PrintWriter(System.out);

        out.println(1^sc.nextInt());


        sc.close();
        out.close();
    }




} import java.io.PrintWriter; PrintWriter java.io import java.util.*; util.* java class Main{
    static PrintWriter out;
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        out=new PrintWriter(System.out);

        out.println(1^sc.nextInt());


        sc.close();
        out.close();
    }




} Main static PrintWriter out; out public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        out=new PrintWriter(System.out);

        out.println(1^sc.nextInt());


        sc.close();
        out.close();
    } main {
        Scanner sc=new Scanner(System.in);
        out=new PrintWriter(System.out);

        out.println(1^sc.nextInt());


        sc.close();
        out.close();
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) out=new PrintWriter(System.out) out new PrintWriter(System.out) out.println(1^sc.nextInt()) out.println out 1^sc.nextInt() 1 sc.nextInt() sc.nextInt sc sc.close() sc.close sc out.close() out.close out String[] args args
import java.io.PrintWriter;
import java.util.*;

class Main{
    static PrintWriter out;
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        out=new PrintWriter(System.out);

        out.println(1^sc.nextInt());


        sc.close();
        out.close();
    }




}