Codeforces 605A Sorting Railway Cars [贪心]

NoSuchKey