SRM624/div2hard.cpp