영어 원문입니다. 원문의 수식·표를 글자로 옮겨 모양이 다를 수 있습니다. 정확한 내용은 원문 페이지에서 확인하세요. 원문 페이지 열기 (새 창)
Problem
Alice and Bertil are throwing a ball in a park. Exactly 21 meters in front of Alice and Bertil there is a post, and Jack gives Alice and Bertil a challenge.
The challenge is for Alice and Bertil to each throw a ball as close to the post as possible, but the ball may not be thrown past the post. Whoever throws closest to 21 meters, without throwing past 21 meters, wins. If both Alice and Bertil throw farther than 21 meters, or if they throw equally far, then Jack wins instead. They have now thrown and need help determining who won.
Input
The first line of input contains the integer A (0 ≤ A ≤ 30), the number of meters that Alice has thrown.
The second line contains the integer B (0 ≤ B ≤ 30), the number of meters that Bertil has thrown.
Output
- If Alice won, print “Alice”.
- If Bertil won, print “Bertil”.
- If Jack won, print “Jack”.
Note that you should not print any quotation marks.
Scoring
Your solution will be tested on a set of test groups. To earn points for a group, you must pass all test cases in that group.
| Group | Points | Constraints |
|---|---|---|
| 1 | 20 | A ≠ B and A, B ≤ 21 |
| 2 | 20 | A, B ≤ 21 |
| 3 | 20 | Jack does not win. |
| 4 | 40 | No additional constraints. |
Explanation of Samples
In sample 1, Alice throws 7 meters and Bertil throws 5 meters. Neither of them throws past the post, and Alice throws closest to 21 meters, so Alice wins.
In sample 2, Alice throws 26 meters and Bertil throws 22 meters. Both of them throw past the post, so Jack wins.
예제
예제 1
7 5
Alice
예제 2
26 22
Jack