Surely you know that supermarkets, shopping centres, and indeed all kind of vendors seem to have fallen in love with the digit , for that digit occurs most often in the price of a product, preferably at the least significant positions. Your favourite chocolate bar might cost cents, just right to be able to advertise that it costs less than euro. Your new bicycle might cost euros, which, of course, is less than euros.
While such comparisons are mathematically sound, they seem to impose a certain amount of stupidity on the customer. Moreover, who wants to carry home those annoying small coins you get back as change?
Fortunately, the FIFA has not adopted this weird pricing scheme: a ticket for the final in the first category for example costs dollar, in the second category dollar and in the third category dollar. These prices may only be regarded weird for other reasons.
We want to distinguish between absurd prices like cents, euros, etc. and normal prices. To measure the absurdity of a positive integer, do the following:
Eliminate all trailing zeros, i.e., those in the least significant positions, from the number. You now have a positive integer, say , with a non-zero digit at its end.
Count the number of digits, say , of the number .
if d = 5 the absurdity of the number is 2 \cdot a - 1
otherwise, the absurdity of the number is 2 \cdot a
For example, the absurdity of is and the absurdity of is . Using the measure of absurdity, we can define what we call an absurd price: A price is absurd if and only if the closed interval [0.95 \cdot c, 1.05 \cdot c] contains an integer such that the absurdity of is less than the absurdity of .
Given a price in cents, go ahead and tell whether it is absurd!
The first line consists of the number of test cases to follow. Each test case is specified by one line containing an integer (1 \le c \le 10^9).
For each test case output if is "absurd" or not. Adhere to the format shown in the sample output.
Example 1