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