poj 1654 unfinished