Create uva10489.cpp