import java.util.*;
import java.io.*;


public class Main{

     public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{

     public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     }
} Main public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     } main {
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s= scanner.next(); s scanner.next() scanner.next scanner int n=Integer.valueOf(s); n Integer.valueOf(s) Integer.valueOf Integer s if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1); n==1 n 1 System.out.println(0) System.out.println System.out System System.out 0 if(n==0)
         System.out.println(1); n==0 n 0 System.out.println(1) System.out.println System.out System System.out 1 String []args args public class Main{

     public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     }
} public class Main{

     public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     }
} Main
import java.util.*;
import java.io.*;


public class Main{

     public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        String s= scanner.next();
        int n=Integer.valueOf(s);
        
        if(n==1)
        System.out.println(0);
        else if(n==0)
         System.out.println(1);
        
        
        
        //for(int i=0;i<n;i++)
        //int n= scanner.nextInt();
        //System.out.println()
     }
}