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