AtCoder Beginner Contest 149 E - Handshake

NoSuchKey