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())
  i = input()
  
  i = i.split()
  for item in range(len(i)):
      i[item] = int(i[item])
  
  totn = 0
  totp = 0
  
  countp = 0
  countn = 0
  
  for x in range(len(i)):
      totp += i[x]
      totn += i[x]
  
      if x % 2 == 1:
          if totn == 0:
              countn += 1
              totn = 1
          elif totn < 0:
              countn += abs(totn) + 1
              totn = 1
  
          if totp == 0:
              countp += 1
              totp = -1
          elif totp > 0:
              countp += abs(totp) + 1
              totp = -1
  
      if x % 2 == 0:
          if totn == 0:
              countn += 1
              totn = -1
          elif totn > 0:
              countn += abs(totn) + 1
              totn = -1
  
          if totp == 0:
              countp += 1
              totp = 1
          elif totp < 0:
              countp += abs(totp) + 1
              totp = 1
  count = min(countn, countp)
  print(count)
  
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"}]