public static void main ( String [ ] args ) {
  int n = scan . nextInt ( ) ;
  int m = scan . nextInt ( ) ;
  String [ ] lang1 = new String [ m ] ;
  String [ ] lang2 = new String [ m ] ;
  String [ ] c = new String [ n ] ;
  for ( int i = 0 ;
  i < m ;
  i ++ ) {
    lang1 [ i ] = scan . next ( ) ;
    lang2 [ i ] = scan . next ( ) ;
  }
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    c [ i ] = scan . next ( ) ;
  }
  solve ( n , m , lang1 , lang2 , c ) ;
}

public static void main ( String [ ] args ) { int n = scan . nextInt ( ) ; int m = scan . nextInt ( ) ; String [ ] lang1 = new String [ m ] ; String [ ] lang2 = new String [ m ] ; String [ ] c = new String [ n ] ; for ( int i = 0 ; i < m ; i ++ ) { lang1 [ i ] = scan . next ( ) ; lang2 [ i ] = scan . next ( ) ; } for ( int i = 0 ; i < n ; i ++ ) { c [ i ] = scan . next ( ) ; } solve ( n , m , lang1 , lang2 , c ) ; }
(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 type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (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: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (identifier))))) (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 (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (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 (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier))))))