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