Codeforces Round #317 B. Order Book

NoSuchKey