import java.util.Scanner;

public class Main {


		public static void main(String[] args) {

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		}

} import java.util.Scanner; Scanner java.util public class Main {


		public static void main(String[] args) {

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		}

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

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		} main {

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan if(N ==0 ) {
				System.out.println(1);
			}
			else {
				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 {
				System.out.println(0);
			} System.out.println(0) System.out.println System.out System System.out 0 scan.close() scan.close scan String[] args args public class Main {


		public static void main(String[] args) {

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		}

} public class Main {


		public static void main(String[] args) {

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		}

} Main
import java.util.Scanner;

public class Main {


		public static void main(String[] args) {

			Scanner scan = new Scanner(System.in);
			int N = scan.nextInt();


			if(N ==0 ) {
				System.out.println(1);
			}
			else {
				System.out.println(0);
			}
			scan.close();
		}

}
