VK2012-ProblemE
https://codeforces.me/problemset/problem/212/E Please help me with this.
Codeforces Round 1123 Solution Discussion