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