#K85982. Serial Number Validator
Serial Number Validator
Serial Number Validator
You are given a serial number as a string and need to validate it based on the following criteria:
- The serial number must be exactly 8 characters long.
- It must contain at least two letters. (Letters can be uppercase or lowercase.)
- It must contain at least two digits.
If the given serial number satisfies all criteria, output Valid
, otherwise output Invalid
.
Examples:
Input: A1B2C3D4 Output: Valid</p>Input: AB1C2 Output: Invalid
inputFormat
The input consists of a single line containing a string representing the serial number.
Note: The input is read from standard input (stdin).
outputFormat
Output a single line which is either Valid
or Invalid
(without quotes), based on the serial number validation.
Note: The output is written to standard output (stdout).
## sampleA1B2C3D4
Valid