Football match#10276

Football match

1 second
256 megabytes
Very easy

The national teams of Ukraine and Potokolandia played two football matches against each other. One match took place in Ukraine, and the other in Potokolandia.

In the match held in Ukraine, Ukraine scored goals, while Potokolandia scored goals. In the match held in Potokolandia, Potokolandia scored goals, and Ukraine scored goals.

The winner of the matches is determined by the following criteria:

Please determine which team wins.

Input

The first line contains two integers and (0 \leq a, b \leq 100) — the number of goals scored by Ukraine and Potokolandia, 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 Potokolandia and Ukraine, respectively, in the match played in Potokolandia.

Output

Output «U» if Ukraine wins, «P» if Potokolandia wins, or «T» if the result is a draw.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Note

In the first example, Ukraine scored a total of goals, while Potokolandia scored , so Ukraine wins.

In the second example, both teams scored a total of goals, but Potokolandia scored one "away" goal, thus they win.