import java.util.*;

public class Main {
	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args) {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	}
	
	
	public static int gcd(int x,int y) {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	}
	
}
 


 import java.util.*; util.* java public class Main {
	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args) {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	}
	
	
	public static int gcd(int x,int y) {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	}
	
} Main static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args) {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	} main {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	} int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		} n==1 n 1 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 {
			System.out.println(1);
		} System.out.println(1) System.out.println System.out System System.out 1 String[] args args public static int gcd(int x,int y) {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	} gcd {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	} if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		} x%y == 0 x%y x y 0 {
			return y;
		} return y; y {
			return gcd(y,x%y);
		} return gcd(y,x%y); gcd(y,x%y) gcd y x%y x y int x x int y y public class Main {
	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args) {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	}
	
	
	public static int gcd(int x,int y) {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	}
	
} public class Main {
	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args) {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	}
	
	
	public static int gcd(int x,int y) {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	}
	
} Main
import java.util.*;

public class Main {
	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args) {
		
		int n = scan.nextInt();
		
		if(n==1) {
			System.out.println(0);
		}else {
			System.out.println(1);
		}
		
	}
	
	
	public static int gcd(int x,int y) {
		if(x%y == 0) {
			return y;
		}else {
			return gcd(y,x%y);
		}
	}
	
}
 



