problem 62 solved

thinking from both side can help a lot.