#K94982. Determine the Next Player
Determine the Next Player
Determine the Next Player
You are given the number of balls potted by two players in a game. The game requires determining which player will start the next turn based on the following rule:
If the number of balls potted by both players are equal, then PLAYER B
starts the next turn. Otherwise, PLAYER A
starts the turn.
Your task is to implement the function next_player
that, given two integers H and S, returns the appropriate player. Use stdin to read inputs and stdout to output the result.
inputFormat
The input consists of two integers H and S separated by a space on a single line. Here, H represents the number of balls potted by Player A and S represents the number of balls potted by Player B.
outputFormat
Output a single string: PLAYER A
if it is Player A's turn next, and PLAYER B
if the number of balls potted by both players are equal.
5 3
PLAYER A
</p>