Football match
The Ukrainian national team played two football matches against the Potokolandia national team. One match took place in Ukraine, and the other in Potokolandia.
In the first match, held in Ukraine, the Ukrainian team scored goals, while the Potokolandia team scored goals. In the second match, held in Potokolandia, the Potokolandia team scored goals, and the Ukrainian team scored goals.
The winner of the matches is determined by the following criteria:
The team with the higher total number of goals across both matches wins.
If both teams have the same total number of goals, the team with more "away" goals, meaning goals scored in the opponent's country, wins.
If neither team can be declared the winner based on these criteria, the result is a draw.
Please determine which team will win.
Input
The first line contains two integers and () — the number of goals scored by the Ukrainian and Potokolandia teams, respectively, in the match played in Ukraine.
The second line contains two integers and () — the number of goals scored by the Potokolandia and Ukrainian teams, respectively, in the match played in Potokolandia.
Output
Output «U
» if the Ukrainian team wins, «P
» if the Potokolandia team wins, otherwise output «T
» for a draw.
Examples
Note
In the first example, the Ukrainian team scored a total of goals, while the Potokolandia team scored , so the Ukrainian team wins.
In the second example, both teams scored a total of goals, but the Potokolandia team scored one "away" goal, so they win.