import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;

public class Main {
public static void main(String[] args) throws IOException{
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
}
}
   import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java import java.math.BigInteger; BigInteger java.math import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {
public static void main(String[] args) throws IOException{
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
}
} Main public static void main(String[] args) throws IOException{
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
} main {
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
} BufferedInputStream bis = new BufferedInputStream(System.in); bis new BufferedInputStream(System.in) BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8)); r new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8)) PrintStream ps = new PrintStream(System.out); ps new PrintStream(System.out) int n=Integer.parseInt(r.readLine()); n Integer.parseInt(r.readLine()) Integer.parseInt Integer r.readLine() r.readLine r if(n==0)
    ps.println(1); n==0 n 0 ps.println(1) ps.println ps 1 if(n==1)
  ps.println(0); n==1 n 1 ps.println(0) ps.println ps 0 String[] args args public class Main {
public static void main(String[] args) throws IOException{
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
}
} public class Main {
public static void main(String[] args) throws IOException{
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
}
} Main
import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;

public class Main {
public static void main(String[] args) throws IOException{
  BufferedInputStream bis = new BufferedInputStream(System.in);
  BufferedReader r = new BufferedReader(new InputStreamReader(bis, StandardCharsets.UTF_8));
  PrintStream ps = new PrintStream(System.out);
  int n=Integer.parseInt(r.readLine());
  if(n==0)
    ps.println(1);
    
  
  if(n==1)
  ps.println(0);
  

  
}
}
  