added code for Uva: 10533 10591