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