import java.util.*;
import java.lang.Math;

class Main{

public static void main(String[] args){
Scanner scanner1 = new Scanner(System.in);
Scanner scanner2 = new Scanner(System.in);
int a=scanner1.nextInt();

if(a==1) System.out.print(0);
if(a==0) System.out.print(1);
}
} import java.util.*; util.* java import java.lang.Math; Math java.lang class Main{

public static void main(String[] args){
Scanner scanner1 = new Scanner(System.in);
Scanner scanner2 = new Scanner(System.in);
int a=scanner1.nextInt();

if(a==1) System.out.print(0);
if(a==0) System.out.print(1);
}
} Main public static void main(String[] args){
Scanner scanner1 = new Scanner(System.in);
Scanner scanner2 = new Scanner(System.in);
int a=scanner1.nextInt();

if(a==1) System.out.print(0);
if(a==0) System.out.print(1);
} main {
Scanner scanner1 = new Scanner(System.in);
Scanner scanner2 = new Scanner(System.in);
int a=scanner1.nextInt();

if(a==1) System.out.print(0);
if(a==0) System.out.print(1);
} Scanner scanner1 = new Scanner(System.in); scanner1 new Scanner(System.in) Scanner scanner2 = new Scanner(System.in); scanner2 new Scanner(System.in) int a=scanner1.nextInt(); a scanner1.nextInt() scanner1.nextInt scanner1 if(a==1) System.out.print(0); a==1 a 1 System.out.print(0) System.out.print System.out System System.out 0 if(a==0) System.out.print(1); a==0 a 0 System.out.print(1) System.out.print System.out System System.out 1 String[] args args
import java.util.*;
import java.lang.Math;

class Main{

public static void main(String[] args){
Scanner scanner1 = new Scanner(System.in);
Scanner scanner2 = new Scanner(System.in);
int a=scanner1.nextInt();

if(a==1) System.out.print(0);
if(a==0) System.out.print(1);
}
}