Codeforces Round 926 C. Sasha and the Casino

Codeforces Round 926 C. Sasha and the Casino