#C3203. Taco Checker

    ID: 46605 Type: Default 1000ms 256MiB

Taco Checker

Taco Checker

Given a string S, determine whether every character in S is either a digit (0-9) or one of the lowercase letters between a and e (inclusive). In other words, S is valid if and only if every character is in the set \(\{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e\}\). If S is valid, output 1; otherwise, output 0.

Note: The empty string is considered valid.

inputFormat

The input consists of a single line read from standard input (stdin) containing the string S. The string may be empty.

outputFormat

Output a single integer to standard output (stdout): 1 if the string is valid according to the criteria, or 0 otherwise.

## sample
12b34
1

</p>