while 1: s=input()+0.5 if (s==int(s))*s%2:s=s-1 print int(s)