uva 10137-the-trip solved