import java.util.*;

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

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