#coding: utf-8 ##yuki_272 x=raw_input() if x=='0': print 1 elif x=='1': print 0 else: print "error"