Codeforces Round #157 (Div. 2) B. Little Elephant and Magic Square

NoSuchKey