Problem I
basic

The programming language Ada has integer constants that look
like this: 123, 8#123#, 16#abc#.
These constants represent the integers
Input
The first line of input contains a positive integer
Output
For each line of input, output a line “yes” if it is a valid integer constant according to the above rules; otherwise output a line containing “no”.
Sample Input 1 | Sample Output 1 |
---|---|
5 2#101# 2#101##123# 17#abc# 16#123456789abcdef# 16#123456789abcdef#123456789abcdef# |
yes yes no yes no |