Codeforces Round #541 (Div. 2) A Sea Battle

NoSuchKey