n = int(input()) if n == 1: print(7) else: print(1)