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