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

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

dic = {}

min = List[0]

for i in range(N):

  if List[i]<min:

    min = List[i]

  if List[i]-min not in dic:

    dic[List[i]-min] = 1

  else:

    dic[List[i]-min] += 1

dic2 = sorted(list(dic.items()), reverse=True)

Answer = dic2[0][1]

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

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

purchase = a[0]

profit = []

for i in range(len(a)):

  profit.append(a[i] - purchase)

  if a[i] < purchase:

    purchase = a[i]

profit.sort()

Answer = profit.count(profit[-1])

print(Answer)
N, T = list(map(int, input().split()))
List = list(map(int, input().split()))
dic = {}
min = List[0]
for i in range(N):
    if List[i] < min:
        min = List[i]
    if List[i] - min not in dic:
        dic[List[i] - min] = 1
    else:
        dic[List[i] - min] += 1
dic2 = sorted(list(dic.items()), reverse=True)
Answer = dic2[0][1]
print(Answer)

n, t = list(map(int, input().split()))
(*a,) = list(map(int, input().split()))
purchase = a[0]
profit = []
for i in range(len(a)):
    profit.append(a[i] - purchase)
    if a[i] < purchase:
        purchase = a[i]
profit.sort()
Answer = profit.count(profit[-1])
print(Answer)

-N, T = list(map(int, input().split())) -List = list(map(int, input().split())) -dic = {} -min = List[0] -for i in range(N): -    if List[i] < min: -        min = List[i] -    if List[i] - min not in dic: -        dic[List[i] - min] = 1 -    else: -        dic[List[i] - min] += 1 -dic2 = sorted(list(dic.items()), reverse=True) -Answer = dic2[0][1] +n, t = list(map(int, input().split())) +(*a,) = list(map(int, input().split())) +purchase = a[0] +profit = [] +for i in range(len(a)): +    profit.append(a[i] - purchase) +    if a[i] < purchase: +        purchase = a[i] +profit.sort() +Answer = profit.count(profit[-1])