output_description: Print the answer.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      s_1 s_2 s_3
attempt: N = int(input())
  seq = [int(x) for x in input().split()]
  
  a_sum = seq[0]
  op = 0
  
  for a in seq[1:]:
      tmp = a_sum + a
      if tmp * a_sum < 0:
          a_sum = tmp
      elif a_sum < 0:
          diff = 1 - a_sum - a
          a_sum = 1
          op += abs(diff)
      elif a_sum > 0:
  
          diff = -1 - a_sum - a
          a_sum = -1
          op += abs(diff)
  
  print(op)
  
problem_description: Statement
  
  You are given three words s_1, s_2 and s_3, each composed of lowercase English
  letters, with spaces in between. Print the acronym formed from the uppercased
  initial letters of the words.
samples: [{"input": "atcoder beginner contest", "output": "ABC\n    \n\nThe initial letters of `atcoder`, `beginner` and `contest` are `a`, `b` and\n`c`. Uppercase and concatenate them to obtain `ABC`.\n\n* * *"}, {"input": "resident register number", "output": "RRN\n    \n\n* * *"}, {"input": "k nearest neighbor", "output": "KNN\n    \n\n* * *"}, {"input": "async layered coding", "output": "ALC"}]