Li-Fan Chen says to YSITD
但是好像解法沒那麼複雜