All problems

Problem 66

Pangram Check

Easy · 10 pts · String, Hash Table

Problem

A pangram is a string that contains every letter of the English alphabet, from a to z, at least once. You are given a string S of lowercase letters. Decide whether it is a pangram. Mark each letter you see in an array of 26 flags (or add it to a set), and check at the end that all 26 letters were seen. A string shorter than 26 characters can never be a pangram.

Input

A single string S of lowercase English letters.

Output

Print YES or NO.

Constraints

1 <= |S| <= 100000

Example input

thequickbrownfoxjumpsoverthelazydog

Example output

YES

Explanation

"thequickbrownfoxjumpsoverthelazydog" is the famous sentence "the quick brown fox jumps over the lazy dog" without spaces. It uses all 26 letters, so the answer is YES.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Longest Repeating Character Replacement Next: Repeated Substring Pattern