UVA Problem 100