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

import static java.lang.Integer.*;
import static java.lang.Long.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    }
} import java.io.*; io.* java import java.util.*; util.* java import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Long.*; public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    } main {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) int x = parseInt(in.readLine()); x parseInt(in.readLine()) parseInt in.readLine() in.readLine in if (x == 0) pw.println(1);
        else pw.println(0); x == 0 x 0 pw.println(1) pw.println pw 1 pw.println(0) pw.println pw 0 pw.close() pw.close pw String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    }
} Main
import java.io.*;
import java.util.*;

import static java.lang.Integer.*;
import static java.lang.Long.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);

        int x = parseInt(in.readLine());
        if (x == 0) pw.println(1);
        else pw.println(0);
        
        pw.close();

    }
}