codeforces 1065D Three Pieces

NoSuchKey