시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB16713211982.069%

문제

Oh no, you slept in and have to rush to get to work on time! It is also very cold outside!

In your rush to put on Winter gear and leave home quickly, you wonder if you forgot your keys, phone, or wallet. You had better check.

입력

The first line of input contains a single integer $N$ ($1≤N≤20$) indicating the number of items you grabbed before heading out the door.

The next $N$ lines each contain a single nonempty string of lowercase letters with length at most $10$ indicating an item you grabbed before heading out the door. No two strings will be the same.

출력

Output each of keys, phone, and wallet that does not appear in the input, one per line and in alphabetic order. If you did not forget any of these items, simply print a single line with the text ready.

예제 입력 1

4
jacket
gloves
wallet
keys

예제 출력 1

phone

예제 입력 2

4
phone
toque
wallet
keys

예제 출력 2

ready

예제 입력 3

5
scarf
jacket
gloves
snowpants
shades

예제 출력 3

keys
phone
wallet

출처

University > University of Alberta Programming Contest > UAPC 2024 > Division 2 A번

  • 문제를 만든 사람: Zachary Friggstad