added code for Uva: 111, 10340, 1207