import java.util.Scanner;
public class Main {
    void run(String[] args){
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    }
    public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    void run(String[] args){
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    }
    public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    }
} Main void run(String[] args){
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    } run {
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) Integer x; x Integer print; print x=scan.nextInt() x scan.nextInt() scan.nextInt scan if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        } x==0 x 0 {
            System.out.println(1);
        } System.out.println(1) System.out.println System.out System System.out 1 if(x==1){
            System.out.println(0);
        } x==1 x 1 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    } main {
        Main printer = new Main();
        printer.run(args);
    } Main printer = new Main(); printer new Main() printer.run(args) printer.run printer args String args[] args public class Main {
    void run(String[] args){
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    }
    public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    }
} public class Main {
    void run(String[] args){
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    }
    public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    }
} Main
import java.util.Scanner;
public class Main {
    void run(String[] args){
        Scanner scan=new Scanner(System.in);
        Integer x;
        Integer print;
        x=scan.nextInt();
        if(x==0){
            System.out.println(1);
        }
        else if(x==1){
            System.out.println(0);
        }
    }
    public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    }
}