#include <stdio.h>

int main() {
    int x;

    scanf("%d", &x);

    printf("%d\n", 1 - x);
    
    return 0;
}