cf 248 div2 - tricky C , sad contest, A got hacked result  <50 to >800