Codeforces Global Round 2 B. Alyona and a Narrow Fridge

NoSuchKey