# 1461 しあはせや歩みゆく? from sys import stdin n=int(stdin.readline().rstrip()) if n>3: print((n-3)*5+3) else: print(n)