SRM637 div1 medium problem.
Merge pull request #12 from matscube/SRM637

SRM637 div1 medium problem.