n = int(input()) if n == 2: print(3) else: print(4)