output_description: If T satisfies the property in Problem Statement, print `Yes`; otherwise,
  print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
      T
attempt: # 4つの入力
  a = input()
  
  # スペースで区切り処理
  inputs = a.split(" ")
  
  # A,B,C,Kに代入
  A = int(inputs[0])
  B = int(inputs[1])
  C = int(inputs[2])
  K = int(inputs[3])
  
  # 最終的結果の数字
  i = int(0)
  
  # 残りの変数
  left = int(0)
  
  # パターン1-1
  # K（取る枚数）がA(１のカード)より多い時、A（1のカード）枚取り、
  # left(残りの取る枚数)に代入する
  if K >= A:
      left = K - A
      i = i + A
      # print(f'1-1,残り枚数 {left}')
      # print(f'1-1,結果数 {i}')
  
      # パターン2-1
      # left(残り枚数)がB(０のカード)より多い時B(０のカード)枚取る
      # leftに残りの枚数を代入する
      if left >= B:
          left = left - B
          # print(f'2-1残り枚数 {left}')
          # print(f'2-1結果数 {i}')
  
          # パターン3-1
          # left(残り枚数)より多い時C(-1のカード)をleft(残り枚数)枚取る
          if left > 0:
              for a in range(left):
                  i -= 1
              # print(f'3-1結果数{i}')
              print(i)
  
          # パターン3-2
          # C(-1)のカードをleft(残り枚数)枚とる（終了）
          else:
              left = left - left
              # print(f'3-2結果数{i}')
              print(left)
      # パターン2-2
      # B(0のカード)がleft(残り枚数)より多い時B(0のカード)をleft(残り枚数)枚取る（終了）
      elif B > left:
          # print(f'2-2結果数{i}')
          print(i)
  
  # パターン1-2
  # A(１のカード)がK(取る枚数)より多い時K枚取る（終了）
  elif A > K:
      i = i + A
      # print(f'1-2結果数{i}')
      print(i)
  
problem_description: Statement
  
  Takahashi wants to be a member of some web service.
  
  He tried to register himself with the ID S, which turned out to be already
  used by another user.
  
  Thus, he decides to register using a string obtained by appending one
  character at the end of S as his ID.
  
  He is now trying to register with the ID T. Determine whether this string
  satisfies the property above.
samples: [{"input": "chokudai\n    chokudaiz", "output": "Yes\n    \n\n`chokudaiz` can be obtained by appending `z` at the end of `chokudai`.\n\n* * *"}, {"input": "snuke\n    snekee", "output": "No\n    \n\n`snekee` cannot be obtained by appending one character at the end of `snuke`.\n\n* * *"}, {"input": "a\n    aa", "output": "Yes"}]