CodeForces - 205B Little Elephant and Sorting

NoSuchKey