from numpy import*;_,a=open(0);*a,=list(map(int,a.split()));c=array(a)-minimum.accumulate(a);print((list(c).count(max(c))))
from numpy import*;_,a=open(0);*a,=list(map(int,a.split()));c=array(a)-minimum.accumulate(a);print((sum(c==max(c))))
from numpy import *

_, a = open(0)
(*a,) = list(map(int, a.split()))
c = array(a) - minimum.accumulate(a)
print((list(c).count(max(c))))

from numpy import *

_, a = open(0)
(*a,) = list(map(int, a.split()))
c = array(a) - minimum.accumulate(a)
print((sum(c == max(c))))

-print((list(c).count(max(c)))) +print((sum(c == max(c))))