import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines def solve_wet(a): a.sort() n=len(a) ans=0 r=n-1 for i in range(n): if i>=r: break if a[r]+a[i]>0: r-=1 ans+=1 return ans from collections import Counter def solve_moist(a): c=Counter(a) ans=0 if 0 in c: ans+=c[0]//2 for x, v in c.items(): if x>0 and (-x in c): ans+=min(v, c[-x]) return ans n=int(readline()) a=list(map(int, readline().split())) print(solve_wet([-x for x in a]), solve_wet(a), solve_moist(a))