import java.util.*;
import java.io.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	}
} import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java public class Main {
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	} main {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter ou = new PrintWriter(System.out); ou new PrintWriter(System.out) int i = Integer.parseInt(sc.next()); i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(i == 0) ou.println(1);
		else ou.println(0); i == 0 i 0 ou.println(1) ou.println ou 1 ou.println(0) ou.println ou 0 ou.flush() ou.flush ou String[] args args public class Main {
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	}
} public class Main {
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	}
} Main
import java.util.*;
import java.io.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int i = Integer.parseInt(sc.next());
		if(i == 0) ou.println(1);
		else ou.println(0);
		ou.flush();
	}
}