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