C identifiers

Time Limit: 1000 ms Memory Limit: 65536 KiB

Problem Description

  Identifiers is an important concept in the C programming language,so it is very necessary for every acmer to be clear about the concept.Identifiers provide names for several language elements,such as functions,variables, labels,etc.

An identifier is a sequence of characters.A valid identifiers can contain only upper and lower case alphabetic characters,underscore and digits,and must begin with an alphabetic character or an underscore.Given a list of character sequences,your task is to judge whether they are valid identifiers.

Input

 The first line of the input contains one integer T ( 0 < T ≤ 100) ,indicating the number of strings in the input.T lines follow,each of which contains at least one and no more than 100 characters.(only upper and lower case alphabetic characters,digits,underscore("_"),hyphen("-"),period("."),comma(","),colon(":"),semicolon(";"),exclamation mark("!"),question mark("?"),single and double quotation marks,parentheses,white space and square brackets may appear in the character sequences.)

Output

 For each of T lines,output "Yes"(without quote marks) if the character sequence contained in that line make a valid identifier;output "No"(without quote marks)otherwise.

Sample Input

7
Valididentifier
ACM_2011
_ACM_SDUT_2011
0_sum
SUM2000--2011
Invalid identifier
Abcde0123_--,;!?"()'::[ACM]

Sample Output

Yes
Yes
Yes
No
No
No
No

Hint

 

Source