import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

import java.util.*;

public class Main {

	static Scanner sc = new Scanner(System.in);
	static ArrayList<String> strList = new ArrayList<String>();
	static ArrayList<String> strList2 = new ArrayList<String>();
	static ArrayList<Integer> intList = new ArrayList<Integer>();
	static HashMap<String,Integer> Hmap = new HashMap<String,Integer>();
	public static void main(String[] args) {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	}
} import java.util.ArrayList; ArrayList java.util import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util import java.util.*; util.* java public class Main {

	static Scanner sc = new Scanner(System.in);
	static ArrayList<String> strList = new ArrayList<String>();
	static ArrayList<String> strList2 = new ArrayList<String>();
	static ArrayList<Integer> intList = new ArrayList<Integer>();
	static HashMap<String,Integer> Hmap = new HashMap<String,Integer>();
	public static void main(String[] args) {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	}
} Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static ArrayList<String> strList = new ArrayList<String>(); strList new ArrayList<String>() static ArrayList<String> strList2 = new ArrayList<String>(); strList2 new ArrayList<String>() static ArrayList<Integer> intList = new ArrayList<Integer>(); intList new ArrayList<Integer>() static HashMap<String,Integer> Hmap = new HashMap<String,Integer>(); Hmap new HashMap<String,Integer>() public static void main(String[] args) {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	} main {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	} String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		} str.equals("1") str.equals str "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 public class Main {

	static Scanner sc = new Scanner(System.in);
	static ArrayList<String> strList = new ArrayList<String>();
	static ArrayList<String> strList2 = new ArrayList<String>();
	static ArrayList<Integer> intList = new ArrayList<Integer>();
	static HashMap<String,Integer> Hmap = new HashMap<String,Integer>();
	public static void main(String[] args) {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	}
} public class Main {

	static Scanner sc = new Scanner(System.in);
	static ArrayList<String> strList = new ArrayList<String>();
	static ArrayList<String> strList2 = new ArrayList<String>();
	static ArrayList<Integer> intList = new ArrayList<Integer>();
	static HashMap<String,Integer> Hmap = new HashMap<String,Integer>();
	public static void main(String[] args) {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	}
} Main
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;

import java.util.*;

public class Main {

	static Scanner sc = new Scanner(System.in);
	static ArrayList<String> strList = new ArrayList<String>();
	static ArrayList<String> strList2 = new ArrayList<String>();
	static ArrayList<Integer> intList = new ArrayList<Integer>();
	static HashMap<String,Integer> Hmap = new HashMap<String,Integer>();
	public static void main(String[] args) {

		String str = sc.nextLine();

		if(str.equals("1")) {
			System.out.println("0");
		}
		else {
			System.out.println("1");
		}

	}
}
