public static void main ( String q [ ] ) {
  Scanner sc = new Scanner ( System . in ) ;
  int r = sc . nextInt ( ) , c = sc . nextInt ( ) ;
  HashSet < Integer > x = new HashSet < Integer > ( ) ;
  HashSet < Integer > y = new HashSet < Integer > ( ) ;
  for ( int i = 1 ;
  i <= r ;
  i ++ ) {
    String s = sc . next ( ) ;
    char ar [ ] = s . toCharArray ( ) ;
    for ( int j = 1 ;
    j <= ar . length ;
    j ++ ) {
      if ( ar [ j - 1 ] == '*' ) {
        if ( x . contains ( i ) ) x . remove ( i ) ;
        else x . add ( i ) ;
        if ( y . contains ( j ) ) y . remove ( j ) ;
        else y . add ( j ) ;
      }
    }
  }
  Iterator itx = x . iterator ( ) ;
  Iterator ity = y . iterator ( ) ;
  System . out . println ( itx . next ( ) + " " + ity . next ( ) ) ;
}

public static void main ( String q [ ] ) { Scanner sc = new Scanner ( System . in ) ; int r = sc . nextInt ( ) , c = sc . nextInt ( ) ; HashSet < Integer > x = new HashSet < Integer > ( ) ; HashSet < Integer > y = new HashSet < Integer > ( ) ; for ( int i = 1 ; i <= r ; i ++ ) { String s = sc . next ( ) ; char ar [ ] = s . toCharArray ( ) ; for ( int j = 1 ; j <= ar . length ; j ++ ) { if ( ar [ j - 1 ] == ' * ' ) { if ( x . contains ( i ) ) x . remove ( i ) ; else x . add ( i ) ; if ( y . contains ( j ) ) y . remove ( j ) ; else y . add ( j ) ; } } } Iterator itx = x . iterator ( ) ; Iterator ity = y . iterator ( ) ; System . out . println ( itx . next ( ) + " ▁ " + ity . next ( ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (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))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_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: (type_identifier) 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) dimensions: (dimensions) 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: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal))) consequence: (block (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) alternative: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) alternative: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))))) (local_variable_declaration type: (type_identifier) 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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (string_literal)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))))))