Hey everyone, I created a video editorial for problem D of educational round 102 of Codeforces. You’ll find it helpful.
Problem
Video Editorial