n = int(eval(input()))

d = []



for i in range(n):

    d.append(int(eval(input())))



i = 1

c = 1

list.sort(d,reverse = True) 

j = d[0]



for i in range(len(d)):

    if j > d[i]:

        c += 1

        j = d[i]



print(c)
n = int(eval(input()))

a = []

for i in range(n):

    a.append(int(eval(input())))

a = set(a)



print((len(a)))
n = int(eval(input()))
d = []
for i in range(n):
    d.append(int(eval(input())))
i = 1
c = 1
list.sort(d, reverse=True)
j = d[0]
for i in range(len(d)):
    if j > d[i]:
        c += 1
        j = d[i]
print(c)

n = int(eval(input()))
a = []
for i in range(n):
    a.append(int(eval(input())))
a = set(a)
print((len(a)))

-d = [] +a = [] -    d.append(int(eval(input()))) -i = 1 -c = 1 -list.sort(d, reverse=True) -j = d[0] -for i in range(len(d)): -    if j > d[i]: -        c += 1 -        j = d[i] -print(c) +    a.append(int(eval(input()))) +a = set(a) +print((len(a)))