CF 1059633 - Задача C. Афтер пати

I can write the full editorial in that format, but I need the actual problem statement first. The identifier “Codeforces 1059633 - Задача C. Афтер пати” does not match a standard Codeforces problem ID I can reliably identify.

CF 1059633 - \u0417\u0430\u0434\u0430\u0447\u0430 C. \u0410\u0444\u0442\u0435\u0440 \u043f\u0430\u0442\u0438

Rating: -
Tags: -
Solve time: 26s
Verified: no

Solution

I can write the full editorial in that format, but I need the actual problem statement first.

The identifier “Codeforces 1059633 - Задача C. Афтер пати” does not match a standard Codeforces problem ID I can reliably identify. I found unrelated Codeforces “C” problems, but not this “After party” task, so guessing the algorithm would risk producing a completely wrong editorial.

Please paste the Problem Statement / Input / Output (or send the contest link), and I’ll produce the complete editorial with all requested sections, including the Python solution and tests.