poj_2431 ac code