import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

		if(n==1){
			n=0;
        }
		else if(n==0){
			n=1;
        }
		System.out.println(n);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

		if(n==1){
			n=0;
        }
		else if(n==0){
			n=1;
        }
		System.out.println(n);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

		if(n==1){
			n=0;
        }
		else if(n==0){
			n=1;
        }
		System.out.println(n);
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

		if(n==1){
			n=0;
        }
		else if(n==0){
			n=1;
        }
		System.out.println(n);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc int n = Integer.parseInt(line); n Integer.parseInt(line) Integer.parseInt Integer line if(n==1){
			n=0;
        }
		else if(n==0){
			n=1;
        } n==1 n 1 {
			n=0;
        } n=0 n 0 if(n==0){
			n=1;
        } n==0 n 0 {
			n=1;
        } n=1 n 1 System.out.println(n) System.out.println System.out System System.out n String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

		if(n==1){
			n=0;
        }
		else if(n==0){
			n=1;
        }
		System.out.println(n);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		int n = Integer.parseInt(line);

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