Create uva10246.cpp