# -*- coding: utf-8 -*- if input() == 1: print 0 else: print 1