Problems
10010 - Gainer or Loser

Gainer or Loser

Time Limit: 1 sec

The Problem

The fare of public transport in Bangladesh has been increased recently due to high price of fuel. The authority of govt. has published a chart of fare and ordered the public transport staffs to follow that rule. But staffs of the public transport do not follow the chart perfectly.

In the govt. provided chart fare is calculated per kilometer distance. But the staffs of the public transport collect fare according to bus stoppage. For going from City1 to City2, Mr. Aziz gives 12 Taka. Distance from City1 to City2 is 5 kilometers and the govt. prescribed fare per kilometer is 2 BDT. That means Mr. Aziz pays extra 2 taka. So he is a loser.

Now you have to help a passenger to determine whether he/she is gainer or loser after paying the fare.

The Input

The input file consists of several test cases and is terminated by EOF. For each line of input, there are 3 numbers as A (0<A<=1000000), B (0<A<=1000000)and C (0<C <=1000000) ,where A is the distance in kilometers traveled by a passenger, B is government given fare per kilometer and C is the actual fare that staffs of the transport charged from a passenger.

The Output

For each line of input, print “Gainer” or “Loser” or “Perfect” as described below:

Gainer: If passenger pays less than govt. declared fare

Loser: If passenger pays more than govt. declared fare

Perfect: If passenger pays same as govt. declared fare

Sample Input

5 2 13

11 3 32

20 5 100

Sample Output

Loser

Gainer

Perfect

[School Level]

Inter School & College Programming Contest (ISCPC) 2015

Problem Setter: Md. Helal Uddin & Hasnayn Ahmed Shakil