시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB23217516077.670%

문제

You have received a warning that foreign spies may have infiltrated the great country of Canada. Fortunately, you have developed a foolproof method to determine which potential suspects are truly Canadian: A person is a true Canadian if and only if they end every sentence exactly with eh? .

Given the transcript of a sentence spoken by a suspected spy, write a program to determine if the suspect is truly Canadian…or merely an imposter in disguise!

입력

The input consists of a single line, which is the sentence spoken by the suspect. The line will contain between $3$ and $100$ characters (inclusively). It will also only contain English letters, digits, spaces, and punctuation symbols.

출력

Display Canadian! if the speaker is a true Canadian following the above criteria, otherwise display Imposter! .

예제 입력 1

The weather is nice, eh?

예제 출력 1

Canadian!

예제 입력 2

I'm Canadian I swear!

예제 출력 2

Imposter!

예제 입력 3

eh?

예제 출력 3

Canadian!

예제 입력 4

I'm not suspicious, Eh?

예제 출력 4

Imposter!

출처

University > University of Alberta Programming Contest > UAPC 2022 A번

  • 문제를 만든 사람: Jason Cannon