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