public static void main ( String [ ] args ) {
  final int [ ] TABLE = new int [ ] {
    - 1 , 1 , 1 , 2 , - 1 , 4 , 9 , 8 , - 1 , 3 , 8 , 5 , 7 , 9 , - 1 , 7 , 4 , 0 , 6 , 3 , - 1 , 5 , 2 , 6 , - 1 , 0 };
    Scanner sc = new Scanner ( System . in ) ;
    int n = sc . nextInt ( ) ;
    StringBuilder sb = new StringBuilder ( ) ;
    int count = 0 ;
    for ( int i = 0 ;
    i < n ;
    i ++ ) {
      if ( count != 0 ) {
        sb . append ( " " ) ;
      }
      String s = sc . next ( ) . toLowerCase ( ) ;
      count = 0 ;
      for ( char c : s . toCharArray ( ) ) {
        if ( c < 'a' || c > 'z' ) {
          continue ;
        }
        int v = TABLE [ c - 'a' ] ;
        if ( v == - 1 ) {
          continue ;
        }
        sb . append ( v ) ;
        count ++ ;
      }
    }
    System . out . println ( sb . toString ( ) . trim ( ) ) ;
  }
  
public static void main ( String [ ] args ) { final int [ ] TABLE = new int [ ] { - 1 , 1 , 1 , 2 , - 1 , 4 , 9 , 8 , - 1 , 3 , 8 , 5 , 7 , 9 , - 1 , 7 , 4 , 0 , 6 , 3 , - 1 , 5 , 2 , 6 , - 1 , 0 } ; Scanner sc = new Scanner ( System . in ) ; int n = sc . nextInt ( ) ; StringBuilder sb = new StringBuilder ( ) ; int count = 0 ; for ( int i = 0 ; i < n ; i ++ ) { if ( count != 0 ) { sb . append ( " ▁ " ) ; } String s = sc . next ( ) . toLowerCase ( ) ; count = 0 ; for ( char c : s . toCharArray ( ) ) { if ( c < ' a ' || c > ' z ' ) { continue ; } int v = TABLE [ c - ' a ' ] ; if ( v == - 1 ) { continue ; } sb . append ( v ) ; count ++ ; } } System . out . println ( sb . toString ( ) . trim ( ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions) value: (array_initializer (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (unary_expression operand: (decimal_integer_literal)) (decimal_integer_literal))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (character_literal)) right: (binary_expression left: (identifier) right: (character_literal)))) consequence: (block (continue_statement))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (character_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (block (continue_statement))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (update_expression (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))))))