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