Geek has found a new job for himself, he is now a "password validator", he has to validate thousands of passwords in a day. A password is a string of characters which is valid only when it contains atleast one numerical character, atleast one lowercase english alphabet character and atleast one uppercase english alphabet character. Geek is too smart to do this job manually, so he decided to make a program to automate the process. Help him write a program which when given a string S (the password) prints "YES" if it is a valid password or "NO" otherwise. Input Format: 1. The first line of the input contains a single integer T denoting the number of test cases. 2. The first line of each test case contains a single string S. Output Format: For each test case, print "YES" or "NO" in a new line.
Aucun commentaire:
Enregistrer un commentaire