

import java.util.Map.Entry;
import java.lang.reflect.Method;
import java.util.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
import java.util.ArrayList;

//import org.w3c.dom.css.Counter;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    }
} import java.util.Map.Entry; Entry java.util.Map import java.lang.reflect.Method; Method java.lang.reflect import java.util.*; util.* java import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.Arrays; Arrays java.util import java.util.Deque; Deque java.util import java.util.ArrayList; ArrayList java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = Integer.parseInt(sc.next()); s Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        } s ==1 s 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 {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    }
} Main


import java.util.Map.Entry;
import java.lang.reflect.Method;
import java.util.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
import java.util.ArrayList;

//import org.w3c.dom.css.Counter;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        //String S = sc.next();
        int s = Integer.parseInt(sc.next());
        if(s ==1){
            System.out.println(0);
        }else{
            System.out.println(1);
        }
        
    }
}
