cf-247-2-D.cpp