Codeforces Round #584 A. Paint the Numbers

NoSuchKey