URI Online Judge | 1555
# Functions

**Timelimit: 1**

By Cristhian Bonilha, UTFPR Brazil

In the last math class, Rafael, Beto and Carlos learned some new math functions. Each one of them liked one particular function, and they decided to compete to see which function had the higher outcome.

The function that Rafael chose is r(**x**, **y**) = (3**x**)² + **y**².

Beto chose the function b(**x**, **y**) = 2(**x**²) + (5**y**)².

Carlos, however, chose the function c(**x**, **y**) = -100**x** + **y**³.

Given the values of **x** and **y**, say who chose the function with higher outcome.

The first line of input contains an integer **N** that determines the number of test cases. Each test case consists of two integers **x** and **y** (1 ≤ **x**, **y** ≤ 100), indicating the variables to input in the function.

For each test case print one line, containing one sentence, indicating who won the contest. For example, if Rafael wins the contest, print “Rafael ganhou”. Assume that there will be no ties.

Sample Input | Sample Output |

6 5 3 |
Beto ganhou Carlos ganhou Carlos ganhou Beto ganhou Rafael ganhou Rafael ganhou |