import java.util.*;

public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    }

    public static void main(String[] args){
        new Main().solve();
    }
} import java.util.*; util.* java public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    }

    public static void main(String[] args){
        new Main().solve();
    }
} Main void solve(){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    } solve {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan System.out.println(x == 1 ? 0 : 1) System.out.println System.out System System.out x == 1 ? 0 : 1 x == 1 x 1 0 1 public static void main(String[] args){
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    }

    public static void main(String[] args){
        new Main().solve();
    }
} public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    }

    public static void main(String[] args){
        new Main().solve();
    }
} Main
import java.util.*;

public class Main{
    void solve(){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        System.out.println(x == 1 ? 0 : 1);
    }

    public static void main(String[] args){
        new Main().solve();
    }
}
