URI Online Judge | 3078
# Só o Ouro

**Timelimit: 1**

By Jorge Menezes, PUC Goiás Brazil

If you went to Goias you've certainly experienced or at least heard about the pequi. The pequi is a typical fruit from the region with some few edible seeds.

In this year ICPC (Instância Competitiva do Pequi Campeão) will take place. The ICPC is a competition to determine the best pequi. To make the competition less obvious and more dynamic, the quality of a pequi with **n** seeds will be determined by a non-linear equation.

Define ** \(\textbf{b} = \textbf{n} \hspace{1mm} MOD \hspace{1mm} 257 \)**,

Based on the number of roots of the built equation, a pequi can receive one of the following grades of quality:

- "So o ouro", case the built equation has no real roots.
- "Bom", case the equation has only a real root;
- "Regular", case the equation has more than one real root.

Your task is given the quantity of seeds to discover the degree of quality of a pequi.

The input consist of several test cases. Each test case has a single line with an integer **n** (0 ≤ **n** ≤ 10^{5}), the quantity of seeds of the pequi.

The last test case contains **n** = -1 and must not be processed.

For each test case print on a separate line the degree of quality of the pequi without quotation marks ("So o ouro", "Bom" or "Regular").

Input Sample | Output Sample |

0 |
Bom |