import java.util.Scanner;
import java.math.BigInteger;
import java.util.Arrays;


public class Main {
	
	
	 static int ret=10;

	 public static void main(String[] args) {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 }
	
}
	 import java.util.Scanner; Scanner java.util import java.math.BigInteger; BigInteger java.math import java.util.Arrays; Arrays java.util public class Main {
	
	
	 static int ret=10;

	 public static void main(String[] args) {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 }
	
} Main static int ret=10; ret 10 public static void main(String[] args) {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 } main {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int  a a b b c c i i n n f=0; f 0 String s s s1; s1 n=scan.nextInt() n scan.nextInt() scan.nextInt scan if(n==1)
               System.out.println("0");
         else
             System.out.println("1"); n==1 n 1 System.out.println("0") System.out.println System.out System System.out "0" System.out.println("1") System.out.println System.out System System.out "1" String[] args args public class Main {
	
	
	 static int ret=10;

	 public static void main(String[] args) {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 }
	
} public class Main {
	
	
	 static int ret=10;

	 public static void main(String[] args) {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 }
	
} Main
import java.util.Scanner;
import java.math.BigInteger;
import java.util.Arrays;


public class Main {
	
	
	 static int ret=10;

	 public static void main(String[] args) {
	        
         Scanner scan = new Scanner(System.in);
         int  a,b,c,i,n,f=0;
         String s,s1;
         n=scan.nextInt();
         if(n==1)
               System.out.println("0");
         else
             System.out.println("1");
	 }
	
}
	
