Football match#10739

Football match

1 second
256 megabytes
Very easy

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:

Please determine which team will win.

Input

The first line contains two integers and (0 \leq a, b \leq 100) — 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 (0 \leq c, d \leq 100) — 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

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

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.