poj_2386 ac code