#K73042. Serial Number Validation

    ID: 33887 Type: Default 1000ms 256MiB

Serial Number Validation

Serial Number Validation

You are given a serial number as a string. You need to determine if the serial number is valid based on the following criteria:

  • It must be exactly \(10\) characters long.
  • It must contain at least one uppercase letter (i.e. a character in \([A-Z]\)).
  • It must contain at least one lowercase letter (i.e. a character in \([a-z]\)).
  • It must contain at least one digit (i.e. a character in \([0-9]\)).
  • It must contain at least one special character from the set \(\{!@#$%^&*\}\).

If all these conditions are met, the serial number is considered valid. Otherwise, it is invalid.

inputFormat

The input consists of a single line containing the serial number string.

outputFormat

Output a single line: True if the serial number is valid according to the above conditions, otherwise output False.

## sample
A1b#234567
True