Football match#10276

Football match

1 saniye
256 megabayt
Çok kolay

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.

Giriş

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.

Çıktı

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

Örnekler

Örnek 1

Loading
Loading

Örnek 2

Loading
Loading

Örnek 3

Loading
Loading

Not

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.