added code for Uva: 10696 10783 10789