All problems

Is the Die Test Significant?

mediumPythonHypothesis Testing

Back at Tabletop Forge, where every batch of dice now gets the same check. Each check produces a chi-square statistic, and purchasing wants a yes-or-no before signing each supplier's contract. The 60-roll check that started this came out at 1.0.

The studio's rule was fixed before any dice were rolled: a significance level agreed in advance, read against the right number of degrees of freedom for the die being tested. A six-sided die checked at 5% has 5 degrees of freedom — six faces, with the total number of rolls pinned, which uses one of them up, and nothing else estimated from the tallies — and the chi-square table gives 11.07 as the boundary. Dice with more faces, or checks run at a stricter level, carry different boundaries, so the boundary arrives alongside the statistic.

Task: Print exactly reject if the statistic exceeds the boundary and exactly fail to reject if it does not — lowercase, one line, no quotation marks in the output. The conventions: chi-square has only one tail that counts, the upper one; the level was fixed in advance; and the comparison is strict, so a statistic landing exactly on the boundary does not reject.

Input

The first line holds the check's chi-square statistic, a non-negative decimal number. The second line holds the boundary for that check, a positive decimal number.

Output

One line holding one of the two phrases above, in lower case, and nothing else.

Example:

Input:
1.0
11.07

Output:
fail to reject

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…