
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner ob=new Scanner(System.in);
	int x=ob.nextInt();
		System.out.println(x^1);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

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

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

	public static void main(String[] args) {
		Scanner ob=new Scanner(System.in);
	int x=ob.nextInt();
		System.out.println(x^1);
	}
} Main

import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner ob=new Scanner(System.in);
	int x=ob.nextInt();
		System.out.println(x^1);
	}
}
