import java.util.*;
import java.math.*;
class Main {
	static Scanner sc = new Scanner(System.in);

	void solve() {
		try {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} catch (Exception e) {
			return;
		}
	}
	public static void main(String[] args) {
		Main ob = new Main();
		ob.solve();
	}
} import java.util.*; util.* java import java.math.*; math.* java class Main {
	static Scanner sc = new Scanner(System.in);

	void solve() {
		try {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} catch (Exception e) {
			return;
		}
	}
	public static void main(String[] args) {
		Main ob = new Main();
		ob.solve();
	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void solve() {
		try {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} catch (Exception e) {
			return;
		}
	} solve {
		try {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} catch (Exception e) {
			return;
		}
	} try {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} catch (Exception e) {
			return;
		} catch (Exception e) {
			return;
		} Exception e {
			return;
		} return; {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if (num == 1)
				System.out.println(0);
			else
				System.out.println(1); num == 1 num 1 System.out.println(0) System.out.println System.out System System.out 0 System.out.println(1) System.out.println System.out System System.out 1 public static void main(String[] args) {
		Main ob = new Main();
		ob.solve();
	} main {
		Main ob = new Main();
		ob.solve();
	} Main ob = new Main(); ob new Main() ob.solve() ob.solve ob String[] args args
import java.util.*;
import java.math.*;
class Main {
	static Scanner sc = new Scanner(System.in);

	void solve() {
		try {
			int num = sc.nextInt();
			if (num == 1)
				System.out.println(0);
			else
				System.out.println(1);
		} catch (Exception e) {
			return;
		}
	}
	public static void main(String[] args) {
		Main ob = new Main();
		ob.solve();
	}
}