import java.util.*;

public class Main {
    public static void main(String[] args) {
		Scanner sca01 = new Scanner(System.in);
		int x = sca01.nextInt();

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

		if(x == 1){
			System.out.println("0");
		}else {
			System.out.println("1");
		}
	}
} Main public static void main(String[] args) {
		Scanner sca01 = new Scanner(System.in);
		int x = sca01.nextInt();

		if(x == 1){
			System.out.println("0");
		}else {
			System.out.println("1");
		}
	} main {
		Scanner sca01 = new Scanner(System.in);
		int x = sca01.nextInt();

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

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

		if(x == 1){
			System.out.println("0");
		}else {
			System.out.println("1");
		}
	}
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
		Scanner sca01 = new Scanner(System.in);
		int x = sca01.nextInt();

		if(x == 1){
			System.out.println("0");
		}else {
			System.out.println("1");
		}
	}
}