In the dream, May and Ray returned to the side of the little jellyfish. They continued to play their unique game just as they used to.
May and Ray are playing the roles of princesses of two countries, each with

knights. The

-th knight of May has a health value of

, and the

-th knight of Ray has a health value of

. The

-th knight of May stands opposite the

-th knight of Ray.
When a knight's health becomes

, the knight dies. The game ends when no knights are standing opposite each other.
The two take turns commanding their knights to attack, with May commanding first. During each command, the current player can choose a pair of knights that are still standing opposite each other and order their knight to attack, reducing the opposing knight's health by

.
May and Ray both care about their knights, so they both aim to maximize the number of their surviving knights. Both princesses are very clever and will always make the optimal decision.
You, the little jellyfish, as the witness of this duel, want to know in advance how many knights May will have surviving in the end.