Valid Hexadecimal
Is S a plain hexadecimal string — only digits and letters a–f/A–F, no prefix?
Input: one line with the candidate string S.
Output: YES or NO.
Constraints:
- 1 ≤ |S| ≤ 100
Sample Tests
Input 1
1A3f
Output 1
YES
Input 2
0x1A
Output 2
NO
Discussion (opens after you solve — no spoilers before)
No comments yet.