#!/usr/bin/python3 # This problem is http://yukicoder.me/problems/590 first_line = input() binary = int(first_line) print(1^binary)