uCoder | 1345 | Nível: 2 | Tempo Limite: 2
Pangram
Adaptado por None
Competição: Maratona de Programação da SBC 2017 - Fase Nacional
“Pangram Show” is an exciting new television quiz show which offers very large cash prizes for contestants who correctly detect if a sentence is a pangram. A pangram is a sentence that contains at least once each of all 26 letters of the English alphabet. Here are some pangram examples:
• the quick brown fox jumps over a lazy dog
• jackdaws loves my big sphinx of quartz
• pack my box with five dozen liquor jugs
Each contestant in the Pangram Show is given a sentence and he/she must indicate within fifteen seconds if the given sentence is a pangram or not. When a contestant fails he/she is eliminated from the competition, otherwise he/she continues for the next round.
During the ICPC Latin American Regional you will be able to play along with actual contestants from the show. You’ll be given the same sentences as they appear on the show. Can you do as well as the contestants?
Entrada
The input consists of a single line that contains a string S containing at least one and at most 200 characters. The only characters in S are lowercase letters of the English alphabet and spaces.
Saída
Output a single line with the uppercase letter “Y” if the sentence is a pangram and the uppercase letter “N” otherwise.
Exemplo de Entrada | Exemplo de Saída |
---|---|
abcdefghijklmnopqrstuvwxyz |
Y
|
hello world |
N
|
jackdawf loves my big quartz sphinx |
Y
|