output_description: Print the answer, with space in between.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S T
      A B
      U
attempt: mod = 10**9 + 7
  rng = 2000100
  fctr = [1] + [0] * (rng - 1)
  finv = [1] + [0] * (rng - 1)
  for i in range(1, rng):
      fctr[i] = fctr[i - 1] * i % mod
  for i in range(1, rng):
      finv[i] = pow(fctr[i], mod - 2, mod)
  
  
  def cmb(n, k):
      if n < 0 or k < 0:
          return 0
      else:
          return fctr[n] * finv[n - k] * finv[k] % mod
  
  
  x1, y1, x2, y2 = map(int, input().split())
  print(
      (
          cmb(x2 + y2 + 2, x2 + 1)
          - cmb(x2 + y1 + 1, y1)
          - cmb(x1 + y2 + 1, x1)
          + cmb(x1 + y1, x1)
      )
      % mod
  )
  
problem_description: Statement
  
  We have A balls with the string S written on each of them and B balls with the
  string T written on each of them.  
  From these balls, Takahashi chooses one with the string U written on it and
  throws it away.  
  Find the number of balls with the string S and balls with the string T that we
  have now.
samples: [{"input": "red blue\n    3 4\n    red", "output": "2 4\n    \n\nTakahashi chose a ball with `red` written on it and threw it away. Now we have\ntwo balls with the string S and four balls with the string T.\n\n* * *"}, {"input": "red blue\n    5 5\n    blue", "output": "5 4\n    \n\nTakahashi chose a ball with `blue` written on it and threw it away. Now we\nhave five balls with the string S and four balls with the string T."}]