n, t = list(map(int, input().split()))

a = list(map(int, input().split()))



profit = 0

prof_n = 0



mn = 0

for i in range(n):

    if i == 0:

        mn = a[i]

        continue

    if a[i] < mn:

        mn = a[i]

    else:

        if a[i] - mn > profit:

            profit = a[i] - mn

            prof_n = 1

        elif a[i] - mn == profit:

            prof_n += 1



ans = prof_n

print(ans)

N, T = list(map(int, input().split()))

A = list(map(int, input().split()))



pre = 10 ** 18

diff_max = 0

diff_cnt = 0



for a in A:

    if a < pre:

        pre = a

        continue



    if a - pre > diff_max:

        diff_max = a - pre

        diff_cnt = 1

    elif a - pre == diff_max:

        diff_cnt += 1



# 高橋君はdiffmax*(T//2)の利益

# 取引できるのがdiffcnt箇所、これをつぶす

print(diff_cnt)
n, t = list(map(int, input().split()))
a = list(map(int, input().split()))
profit = 0
prof_n = 0
mn = 0
for i in range(n):
    if i == 0:
        mn = a[i]
        continue
    if a[i] < mn:
        mn = a[i]
    else:
        if a[i] - mn > profit:
            profit = a[i] - mn
            prof_n = 1
        elif a[i] - mn == profit:
            prof_n += 1
ans = prof_n
print(ans)

N, T = list(map(int, input().split()))
A = list(map(int, input().split()))
pre = 10**18
diff_max = 0
diff_cnt = 0
for a in A:
    if a < pre:
        pre = a
        continue
    if a - pre > diff_max:
        diff_max = a - pre
        diff_cnt = 1
    elif a - pre == diff_max:
        diff_cnt += 1
# 高橋君はdiffmax*(T//2)の利益
# 取引できるのがdiffcnt箇所、これをつぶす
print(diff_cnt)

-n, t = list(map(int, input().split())) -a = list(map(int, input().split())) -profit = 0 -prof_n = 0 -mn = 0 -for i in range(n): -    if i == 0: -        mn = a[i] +N, T = list(map(int, input().split())) +A = list(map(int, input().split())) +pre = 10**18 +diff_max = 0 +diff_cnt = 0 +for a in A: +    if a < pre: +        pre = a -    if a[i] < mn: -        mn = a[i] -    else: -        if a[i] - mn > profit: -            profit = a[i] - mn -            prof_n = 1 -        elif a[i] - mn == profit: -            prof_n += 1 -ans = prof_n -print(ans) +    if a - pre > diff_max: +        diff_max = a - pre +        diff_cnt = 1 +    elif a - pre == diff_max: +        diff_cnt += 1 +# 高橋君はdiffmax*(T//2)の利益 +# 取引できるのがdiffcnt箇所、これをつぶす +print(diff_cnt)