x=int(input()) print(2if x==2else 5*x-[10,16][x%2==0])