N = int(input())
if N > 3:
    ans = 5*(N-3) + 3
else:
    ans = N
print(ans)