output_description: Print the answer.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N i
attempt: # abc107_a.py
  # https://atcoder.jp/contests/abc107/tasks/abc107_a
  
  # 問題文
  # N両編成の列車があります。 この列車の前から i両目は、後ろから何両目でしょうか？
  
  # 制約
  #     1≤N≤100
  #     1≤i≤N
  
  # 入力
  # 入力は以下の形式で標準入力から与えられる。
  # N i
  
  # 出力
  # 答えを出力せよ。
  
  # 入力例 1
  # 4 2
  
  # 出力例 1
  # 3
  
  # 4両編成の列車において、前から 2 両目の車両は、後ろから 3両目です。
  
  # 入力例 2
  # 1 1
  
  # 出力例 2
  # 1
  
  # 入力例 3
  # 15 11
  
  # 出力例 3
  # 5
  
  
  def calculation(lines):
      N, i = list(map(int, lines[0].split()))
      # K = int(lines[1])
      return [N - i + 1]
  
  
  # 引数を取得
  def get_input_lines(lines_count):
      lines = list()
      for _ in range(lines_count):
          lines.append(input())
      return lines
  
  
  # テストデータ
  def get_testdata(pattern):
      if pattern == 1:
          lines_input = ["4 2"]
          lines_export = [3]
      if pattern == 2:
          lines_input = ["1 1"]
          lines_export = [1]
      if pattern == 3:
          lines_input = ["15 11"]
          lines_export = [5]
      return lines_input, lines_export
  
  
  # 動作モード判別
  def get_mode():
      import sys
  
      args = sys.argv
      if len(args) == 1:
          mode = 0
      else:
          mode = int(args[1])
      return mode
  
  
  # 主処理
  def main():
      mode = get_mode()
      if mode == 0:
          lines_input = get_input_lines(1)
      else:
          lines_input, lines_export = get_testdata(mode)
  
      lines_result = calculation(lines_input)
  
      for line_result in lines_result:
          print(line_result)
  
      # if mode > 0:
      #     print(f'lines_input=[{lines_input}]')
      #     print(f'lines_export=[{lines_export}]')
      #     print(f'lines_result=[{lines_result}]')
      #     if lines_result == lines_export:
      #         print('OK')
      #     else:
      #         print('NG')
  
  
  # 起動処理
  if __name__ == "__main__":
      main()
  
problem_description: Statement
  
  There is an N-car train.
  
  You are given an integer i. Find the value of j such that the following
  statement is true: "the i-th car from the front of the train is the j-th car
  from the back."
samples: [{"input": "4 2", "output": "3\n    \n\nThe second car from the front of a 4-car train is the third car from the back.\n\n* * *"}, {"input": "1 1", "output": "1\n    \n\n* * *"}, {"input": "15 11", "output": "5"}]