URI Online Judge | 1787

URI

By Jadson José Monteiro Oliveira, Faculdade de Balsas BR Brazil

Timelimit: 1

Uilton, Rita and Ingred created a new game to decide who will not pay their part of the pizza on next weekend and gave the name "URI" for the game (maybe they decided to join the initials of their names to form the name of the game ). The URI consists of N rounds, each round, each of the three players speak a number, is not allowed equal numbers in a round. If the number that the player to talk is a power of 2, the same earns 1 point, and if in addition to be a power of 2, is the largest number of the round, the player earns 1 more point, if the number is not power of 2 the player does not earn any points. Your task is to create a program that helps to make the account for the score and inform the winner, given the amount of rounds, and the numbers of each round.

Consider that the first 4 powers of 2: 2, 4, 8, 16.

Input

The input contains several test cases. The first line of input contains a single integer N indicating the number of rounds (1 ≤ 10⁵), each of the following N lines contains 3 integers Ui, Ri, Ii (1 <Ui, Ri, Ii ≤ 10⁹), representing respectively the number of Uilton, Rita and Ingred in the i-th round. The end of input is indicated when C = 0.

Output

For each test case output a single line containing the name of the player who has more points. if a draw occurs in the first place, print the name of the game "URI" (without quotes).

Input Sample Output Sample

2

2 4 3

2 4 6

2

2 4 6

3 2 16

6

2048 26 7986

2 45 63

69 13 281

4 8 2

6 987 4

39894 7337 1354

0

Rita
URI
Uilton