#C1691. Valid Password Checker

    ID: 44924 Type: Default 1000ms 256MiB

Valid Password Checker

Valid Password Checker

This problem asks you to write a program that determines whether a given password is valid based on the following criteria:

  • The length of the password must be at least 8 characters.
  • The password must contain at least one uppercase letter.
  • The password must contain at least one lowercase letter.
  • The password must contain at least one digit.
  • The password must contain at least one special character from the set: \(\# @ \$ \% \^ & \* \( \)\).

Your program should read the password from stdin and print True if the password meets all the conditions and False otherwise.

Make sure that if any condition fails, the password is considered invalid.

inputFormat

The input consists of a single line containing the password string to validate. The input is provided via stdin.

outputFormat

Output a single line which is either True or False indicating whether the password is valid based on the criteria.

The output is printed to stdout.

## sample
Passw@rd123
True