n = int(raw_input()) if n == 101 or n == 102: print 4 elif n % 2 == 1: print n - 99 else: print n - 100