Farmer-breaking yield records-python



n,b,d=int(input()),[],[]

k=[int(i) for i in input().split()]

c,e=k[0],k[0]

for i in k:

    if i>e:

        b.append(i)

        e=i

    if i<c:

        d.append(i)

        c=i

print(len(b),len(d))  

Post a Comment

0 Comments