import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;

public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        int x=in.nextInt();
        if(x==1)
            System.out.println(0);
        else
            System.out.println(1);
    }
} import java.io.*; io.* java import java.math.*; math.* java import java.security.*; security.* java import java.text.*; text.* java import java.util.*; util.* java import java.util.concurrent.*; concurrent.* java.util import java.util.function.*; function.* java.util import java.util.regex.*; regex.* java.util import java.util.stream.*; stream.* java.util import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.toList; import static java.util.stream.Collectors.toList; import static java.util.stream.Collectors.toList; public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        int x=in.nextInt();
        if(x==1)
            System.out.println(0);
        else
            System.out.println(1);
    }
} Main public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        int x=in.nextInt();
        if(x==1)
            System.out.println(0);
        else
            System.out.println(1);
    } main {
        Scanner in = new Scanner(System.in);
        int x=in.nextInt();
        if(x==1)
            System.out.println(0);
        else
            System.out.println(1);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int x=in.nextInt(); x in.nextInt() in.nextInt in if(x==1)
            System.out.println(0);
        else
            System.out.println(1); x==1 x 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 public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        int x=in.nextInt();
        if(x==1)
            System.out.println(0);
        else
            System.out.println(1);
    }
} public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        int x=in.nextInt();
        if(x==1)
            System.out.println(0);
        else
            System.out.println(1);
    }
} Main
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.regex.*;
import java.util.stream.*;
import static java.util.stream.Collectors.joining;
import static java.util.stream.Collectors.toList;

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