import java.util.*;

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

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