added code for Uva:160