//package com.company;
import java.util.*;
import java.io.*;
import java.lang.*;


public class Main {

    public static void main(String[] args) {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    }
} import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java public class Main {

    public static void main(String[] args) {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    }
} Main public static void main(String[] args) {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    } main {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    } Scanner s=new Scanner(System.in); s new Scanner(System.in) int n=s.nextInt(); n s.nextInt() s.nextInt s if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        } n==0 n 0 {
            System.out.println(1);
        } System.out.println(1) System.out.println System.out System System.out 1 {
            System.out.println(0);
        } System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

    public static void main(String[] args) {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    }
} public class Main {

    public static void main(String[] args) {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    }
} Main
//package com.company;
import java.util.*;
import java.io.*;
import java.lang.*;


public class Main {

    public static void main(String[] args) {
	// write your code here

      //  System.out.println("Hello World");
        // System.out.println("This is my first package ");
        Scanner s=new Scanner(System.in);
        int n=s.nextInt();
        if(n==0)
        {
            System.out.println(1);
        }
        else {
            System.out.println(0);
        }



    }
}
