public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int H = sc . nextInt ( ) ;
  int W = sc . nextInt ( ) ;
  long h = sc . nextLong ( ) ;
  long w = sc . nextLong ( ) ;
  long x = ( - 1000 ) * ( h * w - 1 ) - 1 ;
  String [ ] ans = new String [ H ] ;
  for ( int i = 0 ;
  i < H ;
  ++ i ) {
    ans [ i ] = "" ;
  }
  long sum = 0 ;
  for ( int i = 1 ;
  i <= H ;
  ++ i ) {
    StringBuilder sb = new StringBuilder ( ) ;
    for ( int j = 1 ;
    j <= W ;
    j ++ ) {
      if ( i % h == 0 && j % w == 0 ) {
        sb . append ( x ) ;
        sb . append ( " " ) ;
        sum += x ;
      }
      else {
        sb . append ( 1000 ) ;
        sb . append ( " " ) ;
        sum += 1000 ;
      }
    }
    sb . deleteCharAt ( sb . length ( ) - 1 ) ;
    ans [ i - 1 ] = sb . toString ( ) ;
  }
  if ( sum <= 0 ) System . out . println ( "No" ) ;
  else {
    System . out . println ( "Yes" ) ;
    for ( int i = 0 ;
    i < H ;
    i ++ ) {
      System . out . println ( ans [ i ] ) ;
    }
  }
  return ;
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; int H = sc . nextInt ( ) ; int W = sc . nextInt ( ) ; long h = sc . nextLong ( ) ; long w = sc . nextLong ( ) ; long x = ( - 1000 ) * ( h * w - 1 ) - 1 ; String [ ] ans = new String [ H ] ; for ( int i = 0 ; i < H ; ++ i ) { ans [ i ] = " " ; } long sum = 0 ; for ( int i = 1 ; i <= H ; ++ i ) { StringBuilder sb = new StringBuilder ( ) ; for ( int j = 1 ; j <= W ; j ++ ) { if ( i % h == 0 && j % w == 0 ) { sb . append ( x ) ; sb . append ( " ▁ " ) ; sum += x ; } else { sb . append ( 1000 ) ; sb . append ( " ▁ " ) ; sum += 1000 ; } } sb . deleteCharAt ( sb . length ( ) - 1 ) ; ans [ i - 1 ] = sb . toString ( ) ; } if ( sum <= 0 ) System . out . println ( " No " ) ; else { System . out . println ( " Yes " ) ; for ( int i = 0 ; i < H ; i ++ ) { System . out . println ( ans [ i ] ) ; } } return ; }
(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: (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)))) (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: (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: (binary_expression left: (binary_expression left: (parenthesized_expression (unary_expression operand: (decimal_integer_literal))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))) (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: (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (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: (object_creation_expression type: (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 (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)) right: (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 (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))))))) (expression_statement (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))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (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: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (array_access array: (identifier) index: (identifier))))))))) (return_statement)))