static void solve ( ) throws Exception {
  char [ ] s = next ( ) . toCharArray ( ) ;
  int n = s . length ;
  if ( s [ 0 ] == '@' || s [ n - 1 ] == '@' ) {
    out . print ( "No solution\n" ) ;
    return ;
  }
  List < Integer > ats = new ArrayList < > ( ) ;
  for ( int i = 1 ;
  i < n - 1 ;
  i ++ ) {
    if ( s [ i ] == '@' ) {
      ats . add ( i ) ;
    }
  }
  int prev = - 10 ;
  for ( int x : ats ) {
    if ( x - prev <= 2 ) {
      out . print ( "No solution\n" ) ;
      return ;
    }
    prev = x ;
  }
  if ( ats . size ( ) == 0 ) {
    out . print ( "No solution\n" ) ;
    return ;
  }
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    out . print ( s [ i ] ) ;
    if ( s [ i ] == '@' ) {
      i ++ ;
      out . print ( s [ i ] ) ;
      out . print ( i < ats . get ( ats . size ( ) - 1 ) ? ',' : "" ) ;
    }
  }
}

static void solve ( ) throws Exception { char [ ] s = next ( ) . toCharArray ( ) ; int n = s . length ; if ( s [ 0 ] == ' @ ' || s [ n - 1 ] == ' @ ' ) { out . print ( " No ▁ solution \n " ) ; return ; } List < Integer > ats = new ArrayList < > ( ) ; for ( int i = 1 ; i < n - 1 ; i ++ ) { if ( s [ i ] == ' @ ' ) { ats . add ( i ) ; } } int prev = - 10 ; for ( int x : ats ) { if ( x - prev <= 2 ) { out . print ( " No ▁ solution \n " ) ; return ; } prev = x ; } if ( ats . size ( ) == 0 ) { out . print ( " No ▁ solution \n " ) ; return ; } for ( int i = 0 ; i < n ; i ++ ) { out . print ( s [ i ] ) ; if ( s [ i ] == ' @ ' ) { i ++ ; out . print ( s [ i ] ) ; out . print ( i < ats . get ( ats . size ( ) - 1 ) ? ' , ' : " " ) ; } } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) (throws (type_identifier)) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (character_literal)) right: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal)))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (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)) 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: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal)))) (enhanced_for_statement type: (integral_type) name: (identifier) value: (identifier) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) (return_statement))) (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 (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (ternary_expression condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal))))) consequence: (character_literal) alternative: (string_literal)))))))))))