A - Chess Placing CodeForces - 985A

NoSuchKey