public static void solve ( ) {
  long n = in . nextInt ( ) , k = in . nextInt ( ) ;
  if ( ( n * ( n - 1 ) ) / 2 <= k ) {
    out . println ( "no solution" ) ;
    return ;
  }
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    out . println ( 0 + " " + i ) ;
  }
}

public static void solve ( ) { long n = in . nextInt ( ) , k = in . nextInt ( ) ; if ( ( n * ( n - 1 ) ) / 2 <= k ) { out . println ( " no ▁ solution " ) ; return ; } for ( int i = 0 ; i < n ; i ++ ) { out . println ( 0 + " ▁ " + i ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))))) right: (decimal_integer_literal)) right: (identifier))) 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 (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (string_literal)) right: (identifier)))))))))