SRM627/div1med.cpp