import java.util.*;
import java.lang.Math;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
  		int x = sc.nextInt();    	
  
      	if(x == 1) x = 0;
      	else x = 1;
           
      	System.out.println(x);
        
	}
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
  		int x = sc.nextInt();    	
  
      	if(x == 1) x = 0;
      	else x = 1;
           
      	System.out.println(x);
        
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
  		int x = sc.nextInt();    	
  
      	if(x == 1) x = 0;
      	else x = 1;
           
      	System.out.println(x);
        
	} main {
		Scanner sc = new Scanner(System.in);
  		int x = sc.nextInt();    	
  
      	if(x == 1) x = 0;
      	else x = 1;
           
      	System.out.println(x);
        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc if(x == 1) x = 0;
      	else x = 1; x == 1 x 1 x = 0 x 0 x = 1 x 1 System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
  		int x = sc.nextInt();    	
  
      	if(x == 1) x = 0;
      	else x = 1;
           
      	System.out.println(x);
        
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
  		int x = sc.nextInt();    	
  
      	if(x == 1) x = 0;
      	else x = 1;
           
      	System.out.println(x);
        
	}
} Main
import java.util.*;
import java.lang.Math;

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