import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	}
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	}
} Main public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	} main {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc System.out.println( s.equals("1") ? "0" : "1") System.out.println System.out System System.out s.equals("1") ? "0" : "1" s.equals("1") s.equals s "1" "0" "1" String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	}
} Main
import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
		
		System.out.println( s.equals("1") ? "0" : "1");
	}
}