#K37662. Strong Password Checker

    ID: 26027 Type: Default 1000ms 256MiB

Strong Password Checker

Strong Password Checker

You are given a password string. Your task is to determine if the given password is strong. A password is considered strong if it meets all of the following conditions:

  • The length of the password is between 6 and 12 characters (inclusive).
  • It contains at least one uppercase letter.
  • It contains at least one lowercase letter.
  • It contains at least one digit.
  • It contains at least one special character from the following set: \(\{!@\#\$\%\^\&\*\(\)_\+-=\[\]\{\}\|;:'\",.\?/\~`\}\).

If the password is strong, print YES; otherwise, print NO.

inputFormat

A single line containing the password string.

outputFormat

Output a single line with either YES if the password is strong, or NO if it is not.## sample

Aa1!
NO

</p>