Added code for Uva:644