	import java.util.*;
	import java.util.Map.Entry;
	 
	 
	 class Main {
		 static int mod =  (int) (Math.pow(10,9)+7);
//		 static int mod =  (int) 998244353;
		 static List<ArrayList<Integer>> list= new ArrayList<ArrayList<Integer>>();
		 public static void main(String[] args) {
	    	
	        Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();	
	        long ans=0;
	        if(N==0)ans=1;
	        
	        
	        System.out.println(ans);
		 }
		 
	} import java.util.*; util.* java import java.util.Map.Entry; Entry java.util.Map class Main {
		 static int mod =  (int) (Math.pow(10,9)+7);
//		 static int mod =  (int) 998244353;
		 static List<ArrayList<Integer>> list= new ArrayList<ArrayList<Integer>>();
		 public static void main(String[] args) {
	    	
	        Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();	
	        long ans=0;
	        if(N==0)ans=1;
	        
	        
	        System.out.println(ans);
		 }
		 
	} Main static int mod =  (int) (Math.pow(10,9)+7); mod (int) (Math.pow(10,9)+7) Math.pow(10,9) Math.pow Math 10 9 7 //		 static int mod =  (int) 998244353;
		 static List<ArrayList<Integer>> list= new ArrayList<ArrayList<Integer>>(); list new ArrayList<ArrayList<Integer>>() public static void main(String[] args) {
	    	
	        Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();	
	        long ans=0;
	        if(N==0)ans=1;
	        
	        
	        System.out.println(ans);
		 } main {
	    	
	        Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();	
	        long ans=0;
	        if(N==0)ans=1;
	        
	        
	        System.out.println(ans);
		 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc long ans=0; ans 0 if(N==0)ans=1; N==0 N 0 ans=1 ans 1 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
	import java.util.*;
	import java.util.Map.Entry;
	 
	 
	 class Main {
		 static int mod =  (int) (Math.pow(10,9)+7);
//		 static int mod =  (int) 998244353;
		 static List<ArrayList<Integer>> list= new ArrayList<ArrayList<Integer>>();
		 public static void main(String[] args) {
	    	
	        Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();	
	        long ans=0;
	        if(N==0)ans=1;
	        
	        
	        System.out.println(ans);
		 }
		 
	}