Boundary cases in Codeforces -_-