Create uva10970.cpp