added code for Uva:156