static void solve ( ) {
  int n = ni ( ) ;
  int v = ni ( ) ;
  int count = 0 ;
  boolean status [ ] = new boolean [ n ] ;
  for ( int i = 0 ;
  i < n ;
  ++ i ) {
    boolean check = false ;
    int k = ni ( ) ;
    for ( int j = 0 ;
    j < k ;
    ++ j ) {
      int a = ni ( ) ;
      if ( a < v ) {
        check = true ;
        status [ i ] = true ;
      }
    }
    if ( check ) {
      ++ count ;
    }
  }
  out ( count ) ;
  for ( int i = 0 ;
  i < n ;
  ++ i ) {
    if ( status [ i ] ) {
      ou ( i + 1 + " " ) ;
    }
  }
  out ( ) ;
}

static void solve ( ) { int n = ni ( ) ; int v = ni ( ) ; int count = 0 ; boolean status [ ] = new boolean [ n ] ; for ( int i = 0 ; i < n ; ++ i ) { boolean check = false ; int k = ni ( ) ; for ( int j = 0 ; j < k ; ++ j ) { int a = ni ( ) ; if ( a < v ) { check = true ; status [ i ] = true ; } } if ( check ) { ++ count ; } } out ( count ) ; for ( int i = 0 ; i < n ; ++ i ) { if ( status [ i ] ) { ou ( i + 1 + " ▁ " ) ; } } out ( ) ; }
(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 name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (boolean_type) 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 (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (false))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation 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: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (true))))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (block (expression_statement (update_expression (identifier))))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (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 (if_statement condition: (parenthesized_expression (array_access array: (identifier) index: (identifier))) consequence: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (string_literal))))))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list)))))