added code for Uva:895