import java.util.*;
import java.io.*;
import java.math.BigInteger;
 
public class Main {
	public static long mod = 1000000007;
	
	public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int N = s.nextInt();
	if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	}

	

    
  }
} import java.util.*; util.* java import java.io.*; io.* java import java.math.BigInteger; BigInteger java.math public class Main {
	public static long mod = 1000000007;
	
	public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int N = s.nextInt();
	if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	}

	

    
  }
} Main public static long mod = 1000000007; mod 1000000007 public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int N = s.nextInt();
	if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	}

	

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

	

    
  } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	} N == 1 N 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 long mod = 1000000007;
	
	public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int N = s.nextInt();
	if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	}

	

    
  }
} public class Main {
	public static long mod = 1000000007;
	
	public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int N = s.nextInt();
	if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	}

	

    
  }
} Main
import java.util.*;
import java.io.*;
import java.math.BigInteger;
 
public class Main {
	public static long mod = 1000000007;
	
	public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	int N = s.nextInt();
	if(N == 1){
		System.out.println(0);
	}else{
		System.out.println(1);
	}

	

    
  }
}