added code for Uva:369