poj1663. figure out the pattern. interesting~