uva1585 [Accepted]