import java.awt.*;
import java.io.*;
import java.util.*;
 
public class Main {
	Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		new Main();
	}
	public Main(){
		new TestA().doIt();
	}
	class TestA{
		void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		}
	}
} import java.awt.*; awt.* java import java.io.*; io.* java import java.util.*; util.* java public class Main {
	Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		new Main();
	}
	public Main(){
		new TestA().doIt();
	}
	class TestA{
		void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		}
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) public static void main(String[] args){
		new Main();
	} main {
		new Main();
	} new Main() String[] args args public Main(){
		new TestA().doIt();
	} Main {
		new TestA().doIt();
	} new TestA().doIt() new TestA().doIt new TestA() class TestA{
		void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		}
	} TestA void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		} doIt {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n == 0)System.out.println(1);
			else System.out.println(0); n == 0 n 0 System.out.println(1) System.out.println System.out System System.out 1 System.out.println(0) System.out.println System.out System System.out 0 public class Main {
	Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		new Main();
	}
	public Main(){
		new TestA().doIt();
	}
	class TestA{
		void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		}
	}
} public class Main {
	Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		new Main();
	}
	public Main(){
		new TestA().doIt();
	}
	class TestA{
		void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		}
	}
} Main
import java.awt.*;
import java.io.*;
import java.util.*;
 
public class Main {
	Scanner sc = new Scanner(System.in);
	public static void main(String[] args){
		new Main();
	}
	public Main(){
		new TestA().doIt();
	}
	class TestA{
		void doIt() {
			int n = sc.nextInt();
			if(n == 0)System.out.println(1);
			else System.out.println(0);
		}
	}
}