import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	static PrintStream o = System.out;
	static Scanner sc = new Scanner(System.in);

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

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

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

	public static void main(String[] args) {
		if (sc.nextInt() == 0) {
			o.println(1);
		} else {
			o.println(0);
		}
	}
} Main
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	static PrintStream o = System.out;
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		if (sc.nextInt() == 0) {
			o.println(1);
		} else {
			o.println(0);
		}
	}
}