public static void solve ( Scanner scanner ) {
  String s = scanner . nextLine ( ) , s2 = scanner . nextLine ( ) , s3 = scanner . nextLine ( ) ;
  String res = "" ;
  int len = s3 . length ( ) ;
  for ( int i = 0 ;
  i < len ;
  i ++ ) {
    char c = s3 . charAt ( i ) ;
    if ( c >= '0' && c <= '9' ) res += c ;
    else if ( c >= 'A' && c <= 'Z' ) res += Character . toUpperCase ( s2 . charAt ( s . indexOf ( Character . toLowerCase ( c ) ) ) ) ;
    else res += s2 . charAt ( s . indexOf ( c ) ) ;
  }
  System . out . println ( res ) ;
}

public static void solve ( Scanner scanner ) { String s = scanner . nextLine ( ) , s2 = scanner . nextLine ( ) , s3 = scanner . nextLine ( ) ; String res = " " ; int len = s3 . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { char c = s3 . charAt ( i ) ; if ( c >= '0' && c <= '9' ) res += c ; else if ( c >= ' A ' && c <= ' Z ' ) res += Character . toUpperCase ( s2 . charAt ( s . indexOf ( Character . toLowerCase ( c ) ) ) ) ; else res += s2 . charAt ( s . indexOf ( c ) ) ; } System . out . println ( res ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) 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: (string_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (character_literal)) right: (binary_expression left: (identifier) right: (character_literal)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (character_literal)) right: (binary_expression left: (identifier) right: (character_literal)))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))))) alternative: (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))