_ = input() temperatures = map(int, input().split()) print(sum([1 if t < 0 else 0 for t in temperatures]))