Added code for Uva: 10137