import java.util.*;
public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    }

} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    }

} Main public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    } main {
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int result = 0; result 0 if(x == 0){
        result = 1;
      } x == 0 x 0 {
        result = 1;
      } result = 1 result 1 System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    }

} public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    }

} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
      // 入力
      Scanner sc = new Scanner(System.in);
      int x = sc.nextInt();
      
      // 判定
      int result = 0;
      if(x == 0){
        result = 1;
      }
      
      // 出力
      System.out.println(result);
    }

}