output_description: Print the integer representing the amount of water, in milliliters, that will
  remain in Bottle 2.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: N = int(input())
  li = list(map(int, input().split()))
  li2 = []
  key = [0]  # key ０でおｋ　１で1下げ
  cnt = 0
  flg = True
  if N == 1:
      ans = "Yes"
      flg = False
  while flg:
      cur1 = li[cnt]
      cur2 = li[cnt + 1]
      sa = cur2 - cur1
      if key[cnt] == 0:
          if sa < -1:
              ans = "No"
              flg = False
          elif sa == -1:
              key.append(1)
              cnt += 1
          else:
              key.append(0)
              cnt += 1
      else:
          if sa < 0:
              ans = "No"
              flg = False
          else:
              key.append(0)
              cnt += 1
      if cnt == len(li) - 1:
          ans = "Yes"
          flg = False
  print(ans)
  
problem_description: Statement
  
  We have two bottles for holding water.
  
  Bottle 1 can hold up to A milliliters of water, and now it contains B
  milliliters of water.
  
  Bottle 2 contains C milliliters of water.
  
  We will transfer water from Bottle 2 to Bottle 1 as much as possible.
  
  How much amount of water will remain in Bottle 2?
samples: [{"input": "6 4 3", "output": "1\n    \n\nWe will transfer two milliliters of water from Bottle 2 to Bottle 1, and one\nmilliliter of water will remain in Bottle 2.\n\n* * *"}, {"input": "8 3 9", "output": "4\n    \n\n* * *"}, {"input": "12 3 7", "output": "0"}]