added code for Uva: 10453, 10635, 10739