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

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

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

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

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

}
