n = int(input()) if n == 1 or n == 2 or n == 3: ans = n else: ans = 5 * (n - 3) + 3 print(ans)