import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    }

} import java.io.BufferedOutputStream; BufferedOutputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    }

} Main public static PrintWriter out; out public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    } main {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) out = new PrintWriter(new BufferedOutputStream(System.out)) out new PrintWriter(new BufferedOutputStream(System.out)) int x = Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        } x == 1 x 1 {
            out.println(0);
        } out.println(0) out.println out 0 {
            out.println(1);
        } out.println(1) out.println out 1 sc.close() sc.close sc out.close() out.close out String[] args args public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    }

} public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    }

} Main
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static PrintWriter out;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        out = new PrintWriter(new BufferedOutputStream(System.out));
        int x = Integer.parseInt(sc.next());
        if (x == 1) {
            out.println(0);
        } else {
            out.println(1);
        }
        sc.close();
        out.close();
    }

}