Uva Problem 10452