User:Vishnu067/UVa 10104.cpp