영어 원문입니다. 원문의 수식·표를 글자로 옮겨 모양이 다를 수 있습니다. 정확한 내용은 원문 페이지에서 확인하세요. 원문 페이지 열기 (새 창)
Problem
Axel wants to compete with Petra about who has sold the most apples and pears, but Petra thinks that one cannot ”compare apples and pears”. They agree instead to compare how much money they have earned. They ask you to create a program that, given the number of apples Axel has sold and the number of pears Petra has sold, prints who has earned the most (or ”lika” if they have sold for the same amount). Apples cost 7 kronor each and pears 13 kronor each.
(그림은 원문 저장소에서 볼 수 있습니다)
Input
The input consists of a single line with two integers A,P (0 ≤ A,P ≤ 1000), the number of apples Axel has managed to sell, and the number of pears Petra has managed to sell.
Output
Print a string: the person who has earned the most, ”Axel” or ”Petra”. If they have sold for the same amount, print ”lika”.
Points
Your solution will be tested on several test case groups. To get the points for a group, it must pass all the test cases in the group.
| Group | Point value | Constraints |
|---|---|---|
| 1 | 40 | Axel and Petra haven't earned the same amount of money. |
| 2 | 60 | No additional constraints. |
예제
예제 1
1 1
Petra
예제 2
13 7
lika
예제 3
15 8
Axel