import java.io.*;
class Main{
  public static int solution(int x){
    if(x == 0)
      return 1;
    return 0;
  }
 
public static void main(String[] args) throws Exception{
		BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(buff.readLine());
		System.out.println(solution(n));
	}
} import java.io.*; io.* java class Main{
  public static int solution(int x){
    if(x == 0)
      return 1;
    return 0;
  }
 
public static void main(String[] args) throws Exception{
		BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(buff.readLine());
		System.out.println(solution(n));
	}
} Main public static int solution(int x){
    if(x == 0)
      return 1;
    return 0;
  } solution {
    if(x == 0)
      return 1;
    return 0;
  } if(x == 0)
      return 1; x == 0 x 0 return 1; 1 return 0; 0 int x x public static void main(String[] args) throws Exception{
		BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(buff.readLine());
		System.out.println(solution(n));
	} main {
		BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(buff.readLine());
		System.out.println(solution(n));
	} BufferedReader buff=new BufferedReader(new InputStreamReader(System.in)); buff new BufferedReader(new InputStreamReader(System.in)) int n=Integer.parseInt(buff.readLine()); n Integer.parseInt(buff.readLine()) Integer.parseInt Integer buff.readLine() buff.readLine buff System.out.println(solution(n)) System.out.println System.out System System.out solution(n) solution n String[] args args
import java.io.*;
class Main{
  public static int solution(int x){
    if(x == 0)
      return 1;
    return 0;
  }
 
public static void main(String[] args) throws Exception{
		BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(buff.readLine());
		System.out.println(solution(n));
	}
}