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: import copy
  
  S = input()
  nN = len(S)
  nAns = [1 for i in range(nN)]
  nAnsC = [0 for i in range(nN)]
  
  for j in range(10**3):
      nAnsT = [0 for i in range(nN)]
      for i in range(nN):
          sTmp = S[i]
  
          if nAns[i] == 0:
              continue
          nNum = nAns[i]
          nAns[i] = 0
          if sTmp == "R":
              nTmp = i + 1
          elif sTmp == "L":
              nTmp = i - 1
          nAnsT[nTmp] += nNum
  
      nAns = copy.deepcopy(nAnsT)
      if i == 1:
          nAnsC = copy.deepcopy(nAnsT)
      else:
          nTmp2 = i
          nTmp2 &= 1
          if nTmp2 == 1:
              if nAns == nAnsC:
                  break
              else:
                  nAnsC = copy.deepcopy(nAns)
  
  #    print(*nAns)
  #  sTmp = S[nTmp]
  #  if sTmp =='R':
  #    nTmp += 1
  #  elif sTmp =='L':
  #    nTmp -= 1
  
  #  nAns[nTmp] += 1
  
  print(*nAns)
  
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"}]