Codeforces Round #589 (Div. 2) E.Another Filling the Grid

NoSuchKey