x=int(input());print(5*x-[16,10][x%2]+8*(x==2))