import java.io.*;
import java.util.*;

class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        int x=Integer.parseInt(bu.readLine());
        if(x==0) sb.append(1);
        else sb.append(0);
        System.out.print(sb);
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        int x=Integer.parseInt(bu.readLine());
        if(x==0) sb.append(1);
        else sb.append(0);
        System.out.print(sb);
    }
} Main public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        int x=Integer.parseInt(bu.readLine());
        if(x==0) sb.append(1);
        else sb.append(0);
        System.out.print(sb);
    } main {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        int x=Integer.parseInt(bu.readLine());
        if(x==0) sb.append(1);
        else sb.append(0);
        System.out.print(sb);
    } BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); bu new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb=new StringBuilder(); sb new StringBuilder() int x=Integer.parseInt(bu.readLine()); x Integer.parseInt(bu.readLine()) Integer.parseInt Integer bu.readLine() bu.readLine bu if(x==0) sb.append(1);
        else sb.append(0); x==0 x 0 sb.append(1) sb.append sb 1 sb.append(0) sb.append sb 0 System.out.print(sb) System.out.print System.out System System.out sb String args[] args
import java.io.*;
import java.util.*;

class Main
{
    public static void main(String args[])throws Exception
    {
        BufferedReader bu=new BufferedReader(new InputStreamReader(System.in));
        StringBuilder sb=new StringBuilder();
        int x=Integer.parseInt(bu.readLine());
        if(x==0) sb.append(1);
        else sb.append(0);
        System.out.print(sb);
    }
}
