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