/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	} main {
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1); x == 1 x 1 System.out.println(0) System.out.println System.out System System.out 0 if(x == 0)
			System.out.println(1); x == 0 x 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) throws java.lang.Exception
	{
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	}
} public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	}
} Main
/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scanner = new Scanner(System.in);
		int x = scanner.nextInt();
		if(x == 1)
			System.out.println(0);
		else if(x == 0)
			System.out.println(1);
	}
}