added code for Uva: 11530 11629