Create uva10943.cpp