시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1040 601 547 61.599%

문제

팬그램은 알파벳의 모든 글자들을 사용해서 만든 문장이다. "the quick brown fox jumps over a lazy dog"과 "jackdaws loves my big sphinx of quartz"은 팬그램이다. 문장이 주어졌을 때, 팬그램인지 아닌지를 알아내는 프로그램을 작성하시오.

입력

입력은 여러 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 많아야 200글자로 이루어져 있는 문장이다. 단어는 공백 하나로 구분되어 있다. 또, 단어는 알파벳 소문자로만 이루어져 있다. 입력의 마지막 줄에는 별표(*)가 하나 주어진다.

출력

각 테스트 케이스에 대해서, 입력으로 주어진 문장이 팬그램이라면 'Y', 아니라면 'N'를 출력한다.

예제 입력 1

jackdawf loves my big quartz sphinx
abcdefghijklmnopqrstuvwxyz
hello world
*

예제 출력 1

Y
Y
N
W3sicHJvYmxlbV9pZCI6IjU3MDQiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWQzMmNcdWFkZjhcdWI3YTgiLCJkZXNjcmlwdGlvbiI6IjxwPlx1ZDMyY1x1YWRmOFx1YjdhOFx1Yzc0MCBcdWM1NGNcdWQzMGNcdWJjYjNcdWM3NTggXHViYWE4XHViNGUwIFx1YWUwMFx1Yzc5MFx1YjRlNFx1Yzc0NCZuYnNwO1x1YzBhY1x1YzZhOVx1ZDU3NFx1YzExYyBcdWI5Y2NcdWI0ZTAgXHViYjM4XHVjN2E1XHVjNzc0XHViMmU0LiAmcXVvdDt0aGUgcXVpY2sgYnJvd24gZm94IGp1bXBzIG92ZXIgYSBsYXp5IGRvZyZxdW90O1x1YWNmYyAmcXVvdDtqYWNrZGF3cyBsb3ZlcyBteSBiaWcgc3BoaW54IG9mIHF1YXJ0eiZxdW90O1x1Yzc0MCBcdWQzMmNcdWFkZjhcdWI3YThcdWM3NzRcdWIyZTQuIFx1YmIzOFx1YzdhNVx1Yzc3NCBcdWM4ZmNcdWM1YjRcdWM4NGNcdWM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