@staticmethod
def c():
    (n, k, *s) = map(int, sys.stdin.read().split())
    if (0 in s):
        print(n)
        return
    s += [inf]
    res = 0
    l = r = 0
    tmp = 1
    while (r <= n):
        tmp *= s[r]
        while (tmp > k):
            res = max(res, (r - l))
            tmp //= s[l]
            l += 1
        r += 1
    print(res)
@staticmethod
def c():
    (n, k, *s) = map(int, sys.stdin.read().split())
    if (0 in s):
        print(n)
        return
    s += [inf]
    res = 0
    l = r = 0
    tmp = 1
    while (r <= n):
        tmp *= s[r]
        while (tmp > k):
            res = max(res, (r - l))
            tmp //= s[l]
            l += 1
        r += 1
    print(res)