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