#K8831. Valid Bank Account Number

    ID: 37280 Type: Default 1000ms 256MiB

Valid Bank Account Number

Valid Bank Account Number

The task is to determine whether a given bank account number is valid. A bank account number is considered valid if and only if it meets all of the following criteria:

  1. It must contain exactly 10 characters, i.e. \( |S| = 10 \).
  2. Every character must be a digit between \(0\) and \(9\).
  3. The number must not have a leading zero (i.e. the first digit cannot be \(0\)).

You are required to process a single input string from standard input (stdin) and output the result to standard output (stdout). Output Valid if the account number satisfies all these conditions; otherwise, output Invalid.

inputFormat

A single line containing the bank account number as a string.

outputFormat

Print Valid if the bank account number is valid according to the rules; otherwise, print Invalid.## sample

1234567890
Valid