CodeForces - 995B Suit and Tie

NoSuchKey