
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
import java.util.TreeSet;

public class Main {

	public static void main(String[] args) {

		Scanner inScanner = new Scanner(System.in);

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

} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util import java.util.TreeSet; TreeSet java.util public class Main {

	public static void main(String[] args) {

		Scanner inScanner = new Scanner(System.in);

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

} Main public static void main(String[] args) {

		Scanner inScanner = new Scanner(System.in);

		 int n  = inScanner.nextInt();
		 
		 if (n==0) {
			System.out.println(1);
		}else if (n==1) {
			System.out.println(0);
		} 
		
		
		
	} main {

		Scanner inScanner = new Scanner(System.in);

		 int n  = inScanner.nextInt();
		 
		 if (n==0) {
			System.out.println(1);
		}else if (n==1) {
			System.out.println(0);
		} 
		
		
		
	} Scanner inScanner = new Scanner(System.in); inScanner new Scanner(System.in) int n  = inScanner.nextInt(); n inScanner.nextInt() inScanner.nextInt inScanner if (n==0) {
			System.out.println(1);
		}else if (n==1) {
			System.out.println(0);
		} n==0 n 0 {
			System.out.println(1);
		} System.out.println(1) System.out.println System.out System System.out 1 if (n==1) {
			System.out.println(0);
		} n==1 n 1 {
			System.out.println(0);
		} System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

	public static void main(String[] args) {

		Scanner inScanner = new Scanner(System.in);

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

} public class Main {

	public static void main(String[] args) {

		Scanner inScanner = new Scanner(System.in);

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

} Main

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
import java.util.TreeSet;

public class Main {

	public static void main(String[] args) {

		Scanner inScanner = new Scanner(System.in);

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

}