# -*- coding: utf-8 -*- if __name__ == '__main__': x = int(input()) print(0 if x == 1 else 1)