The password is hard to crack if it contains at least one uppercase letter, at least one lowercase letter, at least one digit and includes 12 or more symbols. For a given string you should output "YES" if this password is hard to crack, otherwise output "NO".
Note that it's convenient to complete this task by using several separate regexes.