Rosetta Problems

Three-Level Sorting

https://kep.uz/practice/problems/problem/52