import java.util.*;
import java.io.*;
class Main
{
	public static void main(String args[]) throws IOException
	{
		try{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		}
	catch(Exception e){}
}} import java.util.*; util.* java import java.io.*; io.* java class Main
{
	public static void main(String args[]) throws IOException
	{
		try{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		}
	catch(Exception e){}
}} Main public static void main(String args[]) throws IOException
	{
		try{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		}
	catch(Exception e){}
} main {
		try{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		}
	catch(Exception e){}
} try{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		}
	catch(Exception e){} catch(Exception e){} Exception e {} {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n=0; n 0 n=Integer.parseInt(br.readLine()) n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		} n==1 n 1 {
			System.out.println("0");
		} System.out.println("0") System.out.println System.out System System.out "0" {
			System.out.println("1");
		} System.out.println("1") System.out.println System.out System System.out "1" String args[] args
import java.util.*;
import java.io.*;
class Main
{
	public static void main(String args[]) throws IOException
	{
		try{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int n=0;
		n=Integer.parseInt(br.readLine());
		if(n==1)
		{
			System.out.println("0");
		}
		else
		{
			System.out.println("1");
		}
		}
	catch(Exception e){}
}}