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