#C13467. Password Validation

    ID: 43008 Type: Default 1000ms 256MiB

Password Validation

Password Validation

You are given a password as input. Your task is to determine whether the password is valid based on the following criteria:

  • The password must be at least 8 characters long.
  • The password must contain at least one uppercase letter, one lowercase letter, one digit, and one special character. The special characters are given by the set \( !@#$%^&*(),.?\":{}| \).
  • The password should not contain any spaces.

If the password meets all these criteria, the output should be True; otherwise, output False.

inputFormat

Input is given from stdin as a single line containing the password string.

outputFormat

Output the result to stdout as either 'True' if the password is valid, or 'False' if it is not.## sample

Valid1@Password
True