added code for Uva:195