UVa 10490: Accepted
UVa 10469: Accepted