import java.util.Scanner;

public class Main {
	static int X;

	public static void main(String[] args) {
		Main prac = new Main();
		prac.execute();
	}

	public void execute() {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static int X;

	public static void main(String[] args) {
		Main prac = new Main();
		prac.execute();
	}

	public void execute() {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	}
} Main static int X; X public static void main(String[] args) {
		Main prac = new Main();
		prac.execute();
	} main {
		Main prac = new Main();
		prac.execute();
	} Main prac = new Main(); prac new Main() prac.execute() prac.execute prac String[] args args public void execute() {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	} execute {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	} try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		} {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) X = Integer.parseInt(sc.next()) X Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			} X==0 X 0 {
				System.out.println(1);
			} System.out.println(1) System.out.println System.out System System.out 1 {
				System.out.println(0);
			} System.out.println(0) System.out.println System.out System System.out 0 public class Main {
	static int X;

	public static void main(String[] args) {
		Main prac = new Main();
		prac.execute();
	}

	public void execute() {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	}
} public class Main {
	static int X;

	public static void main(String[] args) {
		Main prac = new Main();
		prac.execute();
	}

	public void execute() {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	static int X;

	public static void main(String[] args) {
		Main prac = new Main();
		prac.execute();
	}

	public void execute() {

		try (Scanner sc = new Scanner(System.in)) {
			X = Integer.parseInt(sc.next());
			if(X==0) {
				System.out.println(1);
			}else {
				System.out.println(0);
			}
		}
	}
}