static void convert_str ( String str , int k ) {
  char [ ] s = str . toCharArray ( ) ;
  int l = s . length ;
  for ( int i = 0 ;
  i < l ;
  i ++ ) {
    int ascii = ( int ) s [ i ] ;
    if ( ascii >= 'a' && ascii <= 'z' && __gcd ( ascii , k ) == 1 ) {
      char c = ( char ) ( s [ i ] - 32 ) ;
      s [ i ] = c ;
    }
  }
  System . out . println ( String . valueOf ( s ) ) ;
}

static void convert_str ( String str , int k ) { char [ ] s = str . toCharArray ( ) ; int l = s . length ; for ( int i = 0 ; i < l ; i ++ ) { int ascii = ( int ) s [ i ] ; if ( ascii >= ' a ' && ascii <= ' z ' && __gcd ( ascii , k ) == 1 ) { char c = ( char ) ( s [ i ] - 32 ) ; s [ i ] = c ; } } System . out . println ( String . valueOf ( s ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) 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: (field_access object: (identifier) field: (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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (integral_type) value: (array_access array: (identifier) index: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (character_literal)) right: (binary_expression left: (identifier) right: (character_literal))) right: (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))) right: (decimal_integer_literal)))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (integral_type) value: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))