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())
  
  ANS = [0] * 5
  flag = 0
  
  if N < 100000:
      if N < 10000:
          if N < 1000:
              if N < 100:
                  if N < 10:
                      ANS[0] = int(N / 10)
                      flag = flag + 1
                  ANS[1] = 9
                  flag = flag + 1
              ANS[2] = 9 + N - 100 + 1
              flag = flag + 1
          ANS[3] = 909
          flag = flag + 1
      ANS[4] = 9 + 900 + N - 10000 + 1
      flag = flag + 1
  elif N == 100000:
      print(90909)
  
  if flag == 5:
      print(ANS[0])
  if flag == 4:
      print(ANS[1])
  if flag == 3:
      print(ANS[2])
  if flag == 2:
      print(ANS[3])
  if flag == 1:
      print(ANS[4])
  
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"}]