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

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  } main {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = Integer.parseInt(scan.next()); x Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan boolean bool = x == 1 ? true : false; bool x == 1 ? true : false x == 1 x 1 true false int result = !bool ? 1 : 0; result !bool ? 1 : 0 !bool bool 1 0 PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) out.println(result) out.println out result out.flush() out.flush out String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  }
} Main
import java.util.*;
import java.io.*;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  }
}
