added code for Uva:10699