poj 2932 re-edit