SRM629/div1med.cpp