public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		
		int testCases = Integer.parseInt(in.readLine());
		
		while (testCases > 0) {
			validUsername(in.readLine());
			testCases--;
		}
	}