SRM626/div2hard.cpp