import java.util.*;
class Main{
    static Scanner sr = new Scanner(System.in);

    public static void main(String[] args) throws java.lang.Exception {
        int T = sr.nextInt();
        if(T==1)
            System.out.println(0);
        else
            System.out.println(1);


        }
    }

 import java.util.*; util.* java class Main{
    static Scanner sr = new Scanner(System.in);

    public static void main(String[] args) throws java.lang.Exception {
        int T = sr.nextInt();
        if(T==1)
            System.out.println(0);
        else
            System.out.println(1);


        }
    } Main static Scanner sr = new Scanner(System.in); sr new Scanner(System.in) public static void main(String[] args) throws java.lang.Exception {
        int T = sr.nextInt();
        if(T==1)
            System.out.println(0);
        else
            System.out.println(1);


        } main {
        int T = sr.nextInt();
        if(T==1)
            System.out.println(0);
        else
            System.out.println(1);


        } int T = sr.nextInt(); T sr.nextInt() sr.nextInt sr if(T==1)
            System.out.println(0);
        else
            System.out.println(1); T==1 T 1 System.out.println(0) System.out.println System.out System System.out 0 System.out.println(1) System.out.println System.out System System.out 1 String[] args args
import java.util.*;
class Main{
    static Scanner sr = new Scanner(System.in);

    public static void main(String[] args) throws java.lang.Exception {
        int T = sr.nextInt();
        if(T==1)
            System.out.println(0);
        else
            System.out.println(1);


        }
    }


