SRM630/div2hard_2.cpp