n = int(input()) if n <= 3: print(n) else: print(3 + 5 * (n - 3))