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

public class Main{
  Scanner sc = new Scanner(System.in);	

  public void run(){
    int x = sc.nextInt();
    System.out.println(1-x);
  }
  public static void main(String[] args){
    Main m = new Main();
    m.run();
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
  Scanner sc = new Scanner(System.in);	

  public void run(){
    int x = sc.nextInt();
    System.out.println(1-x);
  }
  public static void main(String[] args){
    Main m = new Main();
    m.run();
  }
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public void run(){
    int x = sc.nextInt();
    System.out.println(1-x);
  } run {
    int x = sc.nextInt();
    System.out.println(1-x);
  } int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc System.out.println(1-x) System.out.println System.out System System.out 1-x 1 x public static void main(String[] args){
    Main m = new Main();
    m.run();
  } main {
    Main m = new Main();
    m.run();
  } Main m = new Main(); m new Main() m.run() m.run m String[] args args public class Main{
  Scanner sc = new Scanner(System.in);	

  public void run(){
    int x = sc.nextInt();
    System.out.println(1-x);
  }
  public static void main(String[] args){
    Main m = new Main();
    m.run();
  }
} public class Main{
  Scanner sc = new Scanner(System.in);	

  public void run(){
    int x = sc.nextInt();
    System.out.println(1-x);
  }
  public static void main(String[] args){
    Main m = new Main();
    m.run();
  }
} Main
import java.util.*;
import java.io.*;

public class Main{
  Scanner sc = new Scanner(System.in);	

  public void run(){
    int x = sc.nextInt();
    System.out.println(1-x);
  }
  public static void main(String[] args){
    Main m = new Main();
    m.run();
  }
}