//package src.com.jetman.atcoder;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

/**
 * @description:
 * @author: Jetman
 * @create: 2020-08-29 14:39
 **/
public class Main {

    Scanner sc = new Scanner(System.in);

    long MOD = 1000000000 + 7;


    private void slove() {

        int h = sc.nextInt();
        System.out.println(h^1);





    }

    public static void main(String[] args) {
        new Main().slove();
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    Scanner sc = new Scanner(System.in);

    long MOD = 1000000000 + 7;


    private void slove() {

        int h = sc.nextInt();
        System.out.println(h^1);





    }

    public static void main(String[] args) {
        new Main().slove();
    }
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long MOD = 1000000000 + 7; MOD 1000000000 + 7 1000000000 7 private void slove() {

        int h = sc.nextInt();
        System.out.println(h^1);





    } slove {

        int h = sc.nextInt();
        System.out.println(h^1);





    } int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc System.out.println(h^1) System.out.println System.out System System.out h^1 h 1 public static void main(String[] args) {
        new Main().slove();
    } main {
        new Main().slove();
    } new Main().slove() new Main().slove new Main() String[] args args public class Main {

    Scanner sc = new Scanner(System.in);

    long MOD = 1000000000 + 7;


    private void slove() {

        int h = sc.nextInt();
        System.out.println(h^1);





    }

    public static void main(String[] args) {
        new Main().slove();
    }
} public class Main {

    Scanner sc = new Scanner(System.in);

    long MOD = 1000000000 + 7;


    private void slove() {

        int h = sc.nextInt();
        System.out.println(h^1);





    }

    public static void main(String[] args) {
        new Main().slove();
    }
} Main
//package src.com.jetman.atcoder;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

/**
 * @description:
 * @author: Jetman
 * @create: 2020-08-29 14:39
 **/
public class Main {

    Scanner sc = new Scanner(System.in);

    long MOD = 1000000000 + 7;


    private void slove() {

        int h = sc.nextInt();
        System.out.println(h^1);





    }

    public static void main(String[] args) {
        new Main().slove();
    }
}
