input() num = list(map(int, input().split())) res = 0 for x in num: if -x in num: res += 1 print(int(res/2))