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