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