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