UVa Problem 11235 finally accepted