public static void main ( String [ ] $ ) {
  java . util . Scanner c = new java . util . Scanner ( System . in ) ;
  int n = c . nextInt ( ) , k = c . nextInt ( ) , r = 0 , i = 0 , l = 0 ;
  long s [ ] = new long [ n ] , a = 0 , t = 1 ;
  while ( i < n ) if ( ( s [ i ++ ] = c . nextInt ( ) ) == 0 ) {
    System . out . println ( n ) ;
    return ;
  }
  for ( ;
  l < n ;
  l ++ ) {
    while ( r < n && t * s [ r ] <= k ) {
      t *= s [ r ] ;
      a = Math . max ( a , r ++ - l + 1 ) ;
    }
    if ( r == l ) r ++ ;
    else t /= s [ l ] ;
  }
  System . out . println ( a ) ;
}

public static void main ( String [ ] $ ) { java . util . Scanner c = new java . util . Scanner ( System . in ) ; int n = c . nextInt ( ) , k = c . nextInt ( ) , r = 0 , i = 0 , l = 0 ; long s [ ] = new long [ n ] , a = 0 , t = 1 ; while ( i < n ) if ( ( s [ i ++ ] = c . nextInt ( ) ) == 0 ) { System . out . println ( n ) ; return ; } for ( ; l < n ; l ++ ) { while ( r < n && t * s [ r ] <= k ) { t *= s [ r ] ; a = Math . max ( a , r ++ - l + 1 ) ; } if ( r == l ) r ++ ; else t /= s [ l ] ; } System . out . println ( a ) ; }
(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: (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (type_identifier)) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (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))) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier)))) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (assignment_expression left: (array_access array: (identifier) index: (update_expression (identifier))) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))) (return_statement)))) (for_statement condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))) right: (identifier)))) body: (block (expression_statement (assignment_expression left: (identifier) right: (array_access array: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (update_expression (identifier)) right: (identifier)) right: (decimal_integer_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (expression_statement (update_expression (identifier))) alternative: (expression_statement (assignment_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))