Update UVA11503.cpp