n = int(input()) if n <= 4: print(6 + n) else: print(n)