added code for Uva:108