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