Problem:
 Score : 100 points    Problem 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."      Constraints  1 \leq N \leq 100  1 \leq i \leq N         Input Input is given from Standard Input in the following format:  N  i       Output Print the answer.        Sample Input 1 4 2      Sample Output 1 3  The second car from the front of a 4 -car train is the third car from the back.       Sample Input 2 1 1      Sample Output 2 1       Sample Input 3 15 11      Sample Output 3 5

Solution (Python):
ni = list(map(int, input().split()))
n = ni[0]
i = ni[1]
print(n - i + 1)

Solution (Python):
N,i = map(int, input().split())

print(N-i+1)

Solution (Python):
n, i = map(int, input().split())

print(n - i + 1)

Solution (Python):
N,i=map(int,input().split())

a=(N-i+1)

print(a)

Solution (Python):
N, i = map(int, input().split(" "))
print (N-i+1)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
n,i = map(int,input().split())
print(n-i+1)

Solution (Python):
a,b = map(int, raw_input().split())
print a - b + 1

Solution (Python):



def main():
    n, i = map(int, input().split())
    print(n - i + 1)


if __name__ == '__main__':
    main()

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):

n,i = map(int,input().split())
print (n-i+1)

Solution (Python):
N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):
n,i = map(int,input().split())
print(n-i+1)

Solution (Python):
N, K = map(int, input().split())
print(N-K+1)

Solution (Python):

from sys import stdin

ns = lambda: stdin.readline() 
ni = lambda: int(stdin.readline()) 
na = lambda: list(map(int, stdin.readline().split())) 

N, i = na()
print(N-i+1)

Solution (Python):
A, B = map(int, input().split())
print(A-B+1)

Solution (Python):
n, i = map(int,input().split())
print(n-i+1)

Solution (Python):
n,i = map(int, input().split())
print(n-i+1)

Solution (Python):
a,b=map(int,input().split())
print(a-b+1)

Solution (Python):
N,i= map(int,raw_input().split())

print N-i+1

Solution (Python):
n, i = map(int, raw_input().split())
print n + 1 - i

Solution (Python):
import sys


def solve(N,i) :
    a = N-i
    anser = a+1
    return anser


def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a, str_b] = line.split(' ')
    return (int(str_a), int(str_b))

def main():
    a, b = readQuestion()
    answer = solve(a, b)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
n, i = map(int,input().split())
print(str(n+1-i))

Solution (Python):
n,i = map(int,input().split())
print(n+1-i)

Solution (Python):
n,m = map(int,input().split())
print(n-m+1)

Solution (Python):
N,i=map(int,input().split())
print(N+1-i)

Solution (Python):
info = input()
info = info.split()
backward = int(info[0]) - int(info[1]) + 1
print(backward)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
n, i = list(map(int, input().split()))
print(n + 1 - i)

Solution (Python):
n, i = list(map(int, input().split()))
print(n - i + 1 )

Solution (Python):
N, i = map(int, input().split())
print(N + 1 - i)

Solution (Python):
n,i=map(int,input().split())
ans=n+1-i
print(ans)

Solution (Python):
a,b=map(int,input().split());print(a-b+1)

Solution (Python):
N, i = (int(i) for i in input().split (' '))
print(N-i+1)

Solution (Python):
n ,i = map(int,input().split())
print(n-i+1)

Solution (Python):
i,j=map(int,input().split())
print(i-j+1)

Solution (Python):
N, i = map(int, input().split())

x = N - i +1


print(x)

Solution (Python):
def solve(n, i):
    return n - i + 1

assert solve(4, 2) == 3
assert solve(1, 1) == 1
assert solve(15, 11) == 5
n, i = map(int, raw_input().split())
print solve(n, i)

Solution (Python):
val = input().split()

a, b = [ int(i) for i in val ]

print(a-b+1)

Solution (Python):
n,i= map(int, input().split())
ans=n-i+1
print(ans)

Solution (Python):
n, i= map(int, input().split())
print(n-i+1)

Solution (Python):
a, b = map(int, input().split())

print(a-b+1)

Solution (Python):
n, i = list(map(int, input().split()))

print(n - i + 1)

Solution (Python):
def solve(N, i):
    return N - i + 1

if __name__ == "__main__":
    l = input()
    N, i = int(l.split()[0]),int(l.split()[1])
    print(solve(N,i))

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):


N, i = list(map(int,input().strip().split(' ')))
print(N-i+1)

Solution (Python):
a,b=map(int,input().split())
print(a-b+1)

Solution (Python):
N, i = list(map(int, input().split()))
print(N - i + 1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
list = list(map(int, input().split()))
answer = list[0] - list[1] +1
print(answer)

Solution (Python):
N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())
print(n+1-i)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
a, b = map(int, raw_input().split())

if a >= 1 and a <= 100 and b >= 1 and b <= a:
  c = a-b+1
  print c

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):


if __name__ == "__main__":
    N, i = map(int, input().split())
    print(N-i+1)

Solution (Python):
num, the_num = map(int, input().split())
print(num - the_num + 1)

Solution (Python):

N, i = map(int, input().split())

print(list(range(1, N+1))[::-1][i-1])

Solution (Python):
ni = input().split()
n = int(ni[0])
i = int(ni[1])
print(n-i+1)

Solution (Python):
n, i = map(int, input().split())
print (n - i + 1)

Solution (Python):
N,i = (int(i) for i in input().split(' '))
print(N-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
str = input()
a,b = [int(x) for x in str.split()]
print(a - b + 1)

Solution (Python):
x = list(map(int, input().split()))

print(x[0] - x[1] + 1)

Solution (Python):
n,i = [int(_) for _ in input().split()]

print(n-i+1)

Solution (Python):
l = input().split()
N = int(l[0])
i = int(l[1])
print(N + 1 - i)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N,i = (int(i) for i in input().split(' '))
print(N-i+1)

Solution (Python):
a,b=map(int,input().split())
print(a-b+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())

N,i=inpl()
print(N-i+1)

Solution (Python):

l = [int(x) for x in input().split( )]

ans = l[0] - l[1] + 1
print(ans)

Solution (Python):
a, b = list(map(int, input().split()))
print(a-b+1)

Solution (Python):
N, i =  map(int, input().split())

pos = N - i + 1

print(pos)

Solution (Python):
A = [int(i) for i in input().split(" ")]
ans = A[0] - A[1] + 1

print(ans)

Solution (Python):
N,i = map(int,input().split(" "))
print(N-i+1)

Solution (Python):
a,b=map(int,input().split())
print(a-b+1)

Solution (Python):
N_str,i_str=input().split()
N=int(N_str)
i=int(i_str)

print(N-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N,i = (int(j) for j in input().split())

print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
N, i= map(int, input().split())


num = N-i+1
print(num)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
def getinputdata():

    array_result = []    
    array_result.append(input().split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

n = int(arr_data[0][0])
i = int(arr_data[0][1])

print(n-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
n,i = [int(i) for i in input().split()]
print(n-i+1)

Solution (Python):
N, i = map(int, raw_input().split(" "))
print(N - i + 1)

Solution (Python):
N,i=input().split()

A=int(N)-(int(i)-1)

print(A)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
train = list(map(int, input().split()))

print(train[0] - train[1] + 1)

Solution (Python):
N, i = [int(i) for i in input().split()]
print(N-i+1)

Solution (Python):
l = input().split()
print(int(l[0])-int(l[1])+1)

Solution (Python):

N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())

print(n+1-i)

Solution (Python):
n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
N,i = map(int, input().split())
print(N-i+1)
exit(0)

Solution (Python):
a, b = map(int, input() .split())
print(a - b + 1)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
N,i = map(int, input().split())
print(N-i+1)

Solution (Python):
n,i = map(int, input().split())
print(n-i+1)

Solution (Python):
N, I = [int(_) for _ in input().split()]

print(N - I + 1)

Solution (Python):

N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
list1 = [int(i) for i in input().split()]
print(list1[0]-list1[1]+1)

Solution (Python):
(N, i) = list(map(int, input().split()))

print(N - i + 1)

Solution (Python):



def main():
    n, i = list(map(int, input().split()))
    print(n - i + 1)


if __name__ == '__main__':
    main()

Solution (Python):
N,i=map(int,input().split())

print(N-i+1)

Solution (Python):

f, r = map(int, raw_input().split())
print(f - r + 1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    a,b = LI()

    return a - b + 1



print(main())

Solution (Python):
n, i = map(int,input().split())

print(n - i + 1)

Solution (Python):
a,b = map(int,input().split())
print(a-b+1)

Solution (Python):


n,i=map(int,raw_input().split())
print n-i+1

Solution (Python):

n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N,i = map(int,input().split(" "))
print(N-i+1)

Solution (Python):
n,i = map(int,input().split(' '))
print(n - i + 1)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, raw_input().rstrip().split())
print N-i+1

Solution (Python):
a, b = (int(x) for x in raw_input().split())
print a+1-b

Solution (Python):
a, b = list(map(int, input().strip().split(" ")))
print(a-b+1)

Solution (Python):
a,b=map(int,input().split());print(a-b+1)

Solution (Python):
a, b = map(int, input().split())
print(a + 1 - b)

Solution (Python):
a,b=map(int,input().split())
print(a-b+1)

Solution (Python):
N,i=map(int,input().split())
print(N+1-i)

Solution (Python):
print(eval(input().replace(' ','-'))+1)

Solution (Python):
print(eval(input().replace(' ','-'))+1)

Solution (Python):
N,i = input().split(" ")
print(int(N)-int(i)+1)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
n,i = map(int,input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
a,b=map(int,input().split());print(a-b+1);

Solution (Python):
N, i = list(map(int, input().split()))
print(N - i + 1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
a,b=map(int,input().split())
print(a-b+1)

Solution (Python):
a,b = map(int,input().split())
print(a-b+1)

Solution (Python):
N, i = list(map(int, input().split()))
print(N - i + 1)

Solution (Python):
print((lambda a:a[0]-a[1]+1)(list(map(int,input().split()))))

Solution (Python):
n , i = map(int, input().split())
print(n + 1 - i)

Solution (Python):
a,b=map(int, input().split())
print(a-b+1)

Solution (Python):
N, i = map( int, input().split())
print(N-i+1)

Solution (Python):
n,i = map(int, input().split())
print(n-i+1)

Solution (Python):
n,i = (int(i) for i in input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())

print(n - i + 1)

Solution (Python):
l = list(map(int, input().split()))
print(l[0] + 1 - l[1])

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
l = raw_input()
lst = map(int, l.split())


a = lst[0] - lst[1]
print(a+1)

Solution (Python):
a,b = map(int,input().split())
print(a-b+1)

Solution (Python):
N, i = input().split()

print(int(N) - int(i) + 1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
def main():
    N,i=[int(i) for i in input().split()]
    print(N-i+1)

main()

Solution (Python):
li = list(map(int,input().split()))
n=li[0]
k=li[1]
i = n-k+1
print(i)

Solution (Python):
N, i = list(map(int,input().split()))
print(N+1 -i)

Solution (Python):
a,b = map(int,input().split())
print(a-b+1)

Solution (Python):
n,i = map(int,input().split())
print(n-i+1)

Solution (Python):
a,b = map(int, input().split(" "))

print(a - b + 1)

Solution (Python):
i = list(map(int,input().split()))
print(i[0] - i[1] + 1)

Solution (Python):
import sys

def LI(): return [int(x) for x in sys.stdin.readline().split()]

if __name__ == "__main__":
    n, i = LI()
    print(n-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
n, i = map(int, input().split())
ans = n - i + 1;
print(ans)

Solution (Python):
a,b = map(int, input().split())
print(a-b+1)

Solution (Python):
y = input().split()
print(int(y[0])-int(y[1])+1)

Solution (Python):
a = input().split(" ")
print(int(a[0])-int(a[1])+1)

Solution (Python):
n,m = map(int,input().split())
a=[i for i in range(1,n+1)]
print(a[-m])

Solution (Python):
n,y =map(int, input().split())
print(n-y+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
n,i=map(int,input().split())

print(n-i+1)

Solution (Python):
import sys
from collections import deque
import copy

from math import *

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [N, i] = [int(input_raw[0]), int(input_raw[1])]
    print N - i + 1
if __name__ == '__main__':
    main()

Solution (Python):
N,i=map(int,input().split())

print(N-(i-1))

Solution (Python):
n,m = map(int,input().split())
print(n+1-m)

Solution (Python):
n = input().split()
N = int(n[0])
i = int(n[1])

print(str(N-i+1))

Solution (Python):
A, B = map(int, input().split())
print(A-B+1)

Solution (Python):
a, b = map(int, input().split())
print(a-b+1)

Solution (Python):
N,i = (int(i) for i in input().split())
print(N-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
x, y = map(int, input().split())

print(x - (y-1))

Solution (Python):
N,i = [int(i) for i in input().split()]
print(N - i +1)

Solution (Python):
a, b = [int(i) for i in input().split()]
print(a-b+1)

Solution (Python):
a, b = map(int, input().split())
num= a-b+1
print(num)

Solution (Python):


a,b = list(map(int,raw_input().split()))
print a-b+1

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())

R = (N - i) + 1

print(R)

Solution (Python):
import sys

N, i = map(int, sys.stdin.readline().strip().split(" "))
print(N+1-i)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
n, i = list(map(int, input().split(' ')))

print(n - i + 1)

Solution (Python):
n, i = map(int,input().split())
print(n - i + 1)

Solution (Python):
n,m = map(int,input().split())

print(n-m+1)

Solution (Python):
N,i=[int(i) for i in input().split()]
print(N-i+1)

Solution (Python):
N,M = map(int, input().split())
print(N-M+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
n, i = list(map(int, input().split()))
print(n-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())
train = []
for k in range(1, n+1):
    if k == i:
        train.append('1')
    else:
        train.append('0')

train.reverse()
print(train.index('1')+1)

Solution (Python):
N, i = list(map(int, input().split()))
print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
n=[int(i) for i in input().split()]
print(n[0]-n[1]+1)

Solution (Python):
n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
a = list(map(int,input().split()))
n = a[0]
i = a[1]
res = n - i + 1
print(res)

Solution (Python):




def main():
    n, i = map(int, input().split())

    print(n-i+1)


if __name__ == '__main__':
    main()

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):


line = input().split()
n = int(line[0])
i = int(line[1])

print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
if N == i:
    print(1)
else:
    print((N - i) + 1)

Solution (Python):
def read_line(*types):
	return [f(a) for a, f in zip(input().split(), types)]

s = read_line(int,int)
print(s[0] - s[1] + 1)

Solution (Python):
N,i = map(int, input().split())
print(N - i + 1)

Solution (Python):
N, i=list(map(int,input().split()))
print(N+1-i)

Solution (Python):
N,i = [int(x) for x in input().split()]
print(N-i+1)

Solution (Python):
a,b=map(int,input().split());print(a-b+1)

Solution (Python):
chars = input()

raw_input = chars.split(' ')

n = int(raw_input[0])
i = int(raw_input[1])

if i == 1 and n == 1:
    print(1)
else:
    print(n-i+1)

Solution (Python):
n, i = map(int,input().split(" "))
ans = n - i + 1
print(ans)

Solution (Python):
n,i=map(int,input().split(" "))
print(n-i+1)

Solution (Python):
N, i = list(map(int, input().split()))
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())
A = N - i + 1
print(A)

Solution (Python):


N, i = list(map(int, input().split() ))

print(N - i + 1)

Solution (Python):
n,i = map(int,input().split(" "))

print(n - i + 1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
n,i= map(int,input().split())

u = n-i+1

print(u)

Solution (Python):
inp = list(map(int, input().split()))
N, i = inp[0], inp[1]

print(N+1-i)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N, i = (int(i) for i in input().split())
print(N-(i-1))

Solution (Python):
N, i = input().split()
ans = int(N) -int(i) +1
print(ans)

Solution (Python):
n, i = input().split()
n=int(n)
i=int(i)
print(n-i+1)

Solution (Python):
s = list(map(int, input().split()))
print(s[0] - s[1] + 1)

Solution (Python):
n, i = map(int,input().split())
print(n - i + 1)

Solution (Python):
N,i=map(int,input().split())

print(N-i+1)

Solution (Python):
n, i = map(int, input().split())

print(n - i + 1)

Solution (Python):
n,i = map(int, input().split())

def findJ(num):
    return n+1-num;

print(findJ(i))

Solution (Python):
N, i = map(int, input().split())
print(N + 1 - i)

Solution (Python):
N, i = map(int,input().split())
if N == i:
    print(1)
else:
    print(N - i + 1)

Solution (Python):
import math
N,K=(int(i) for i in input().split())

print(N-K+1)

Solution (Python):
n, i = map(int, input().split())
print (n-i+1)

Solution (Python):
n, i = map(int, raw_input().split())
print n-i+1

Solution (Python):
n, i = map(int,input().split())
print(n-i+1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
[N, i] = [int(i) for i in input().split()]
print(N - i + 1)

Solution (Python):
def run(a, b):
    return a - b + 1


def read_line():
    a, b = input().split()
    a = int(a)
    b = int(b)
    return (a, b)


def main():
    a, b = read_line()
    print(run(a, b))


if __name__ == '__main__':
    main()

Solution (Python):
input = input()
a,b = [int(data) for data in input.split(' ')]
rane = list(range(1, a+1))
print(rane[-b])

Solution (Python):
a = input().split(" ")
n = int(a[0])
i = int(a[1])
b = n + 1 - i
print(b)

Solution (Python):
n_str,i_str = input().split()
n = int(n_str)
i = int(i_str)
res = n - i + 1
print(res)

Solution (Python):
a,b = [int(i) for i in input().split()]
print(a-b+1)

Solution (Python):
N, i  = map(int, input().split())
print(N - i + 1)

Solution (Python):
N,i = map(int,(input().split(" ")))

print(N-i+1)

Solution (Python):
n, i = map(int, input().split())

a = n - i + 1
print(a)

Solution (Python):
n,i = map(int,input().split())

print(n-i+1)

Solution (Python):


N, i = map(int, input().split())

print(N-i+1)

Solution (Python):
N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N+1-i)

Solution (Python):
line = list(map(int,input().split()))
n = line[0]
i = line[1]
print(n-i+1)

Solution (Python):
N,i = map(int,input().split())
print(N-(i-1))

Solution (Python):
def main():
    N, i = map(int, input().split())
    return N-i+1

if __name__ == "__main__":
    print(main())

Solution (Python):
N,i=map(int,input().split( ))

print(N+1-i)

Solution (Python):
inputs = raw_input().replace("\n", "")
N, i = map(int, inputs.split(" "))
print N + 1 - i

Solution (Python):
N, i = map(int, input().split())
out = N-i+1
print(out)

Solution (Python):
N,i = list(map(int,input().split()))
print(N-i+1)

Solution (Python):



N,A=map(int,input().split())
print(N-A+1)

Solution (Python):
nk=input().split()
n=int(nk[0])
k=int(nk[1])
print(n-k+1)

Solution (Python):

traindata = input().split(" ")
traindata = [int(c) for c in traindata]

print(traindata[0]-traindata[1]+1)

Solution (Python):
a, b = map(int, input().split())
print(a+1-b)

Solution (Python):
N,i=list(map(int,input().split()))
C=N-i+1
print(C)

Solution (Python):
N,i = map(int,input().split())
num = N -i+1
print(str(num))

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n + 1 - i)

Solution (Python):

def solve():
    a, b = list(map(int, input().split()))
    return str(a-b+1)

if __name__ == '__main__':
    print(solve())

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N = input().split()

result = int(N[0]) - int(N[1]) + 1

print(result)

Solution (Python):
N, i = map(int, input().split())

A = N - i + 1
print(A)

Solution (Python):
x,y=input().split(" ")
x=int(x)
y=int(y)
print(x+1-y)

Solution (Python):
lis = list(map(int, input().split()))

print(lis[0]+1-lis[1])

Solution (Python):


n,i = map(int,input().split())
print(n-i+1)

Solution (Python):


N, i = map(int, input().split())

ans = N - i + 1

print(ans)

Solution (Python):



def main():
    N, i = map(int, raw_input().split())
    print(N - i + 1)


if __name__ == "__main__":
    main()

Solution (Python):
kazu, mae = map(int, input().split())
print( kazu - mae + 1)

Solution (Python):
n,i = map(int,input().split())
print(n-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
N, i = (int(i) for i in input().split())
x = N - i + 1
print(x)

Solution (Python):
n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N+1-i)

Solution (Python):
N, i = map(int, input().split())

print(N-i+1)

Solution (Python):
input_s = str(input())
[n, i] = list(map(int, input_s.split(' ')))
print(n - i + 1)

Solution (Python):
n,k = map(int,raw_input().split())
print n-k+1

Solution (Python):
def main():
    N, i = list(map(int, input().split(" ")))
    output = solve(N, i)
    print(output)
    return




def solve(N, i):
    """
    解答のコード
    """
    return N - i + 1



if __name__ == "__main__":
    main()

Solution (Python):

N, i = map(int, input().split(" "))

print (N-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
n,i = list(map(int,input().split()))
print(n-i+1)

Solution (Python):
a,b=map(int,input().split(" "))
print(a-b+1)

Solution (Python):
if __name__ == '__main__':
    la = list(map(int, input().split()))
    print(la[0] - la[1] + 1)

Solution (Python):
N,i=map(  int,raw_input().split() )
print N-i+1

Solution (Python):
N,i = list(map(int,input().split(" ")))
ran = list(range(1,N+1))[::-1]
print(ran[i-1])

Solution (Python):
def main1():
    buf = input("");
    num = buf.split();
    hai = []
    for i in range(2):
        hai.append(int(num[i]));
    re= hai[0] - hai[1]+1
    print(re);

if __name__ == '__main__':
    main1()

Solution (Python):
N, i = list(map(int, input().split()))
X = N - i + 1
print(X)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):
a = raw_input().split()
N =int( a[0])
i = int (a[1])

ans = N - i +1

print(ans)

Solution (Python):


N, i = map(int, input().split())

print(N-i+1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
N,i = map(int, input().split())
print(N - i + 1)

Solution (Python):
N, i = [int(_) for _ in input().split()]
print(N + 1 - i)

Solution (Python):
a = raw_input().split()
N =int( a[0])
i = int (a[1])

ans = N - i +1

print(ans)

Solution (Python):

N, i = map(int, input().split())
print(N + 1 - i)

Solution (Python):
N, i  = map(int,input().split())

A=N-i+1

print(A)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
N, i = list(map(int, input().split()))
print(N - i + 1)

Solution (Python):

N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):
import sys
N , i = map(int,input().split())

j = N - i + 1
print(j)

Solution (Python):


n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
N, i = list(map(int, input().split()))

print(N - i + 1)

Solution (Python):
line = input().split()
N = int(line[0])
i = int(line[1])

print(N-i+1)

Solution (Python):
N,i = map(int,input().split())

print(N - i + 1)

Solution (Python):
a,b = map(int, input().split())
print(a - b + 1)

Solution (Python):
N, i = list(map(int, input().split())) 
print(N-i+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)

Solution (Python):
a = input()
a = a.split()
l = list(map(int, a))

ans = l[0] - l[1] + 1
print(ans)

Solution (Python):



N, i = map(int,input().split())
print(N - i + 1)

Solution (Python):
N,i = list(map(int,input().split()))

ans = N - i + 1
    
print(ans)

Solution (Python):
n, i = list(map(int, input().split()))
print(n-i+1)

Solution (Python):
a, b = map(int, input().split())
print(a-b+1)

Solution (Python):
N, i = map(int, raw_input().split())
print N - i + 1

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
n, i = (int(_) for _ in input().split())
print(n-i+1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):
n,i = [int(i) for i in input().split()]
print(n-i+1)

Solution (Python):
n, i = map(int, input().split())
print(n-i+1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
n,i = map(int, input().split())
print(n+1-i)

Solution (Python):
N, i = map(int,input().split())

print(N-i+1)

Solution (Python):
from sys import stdin


def main():
    N, i = [int(x) for x in stdin.readline().rstrip().split()]
    print(N - i + 1)


if __name__ == '__main__':
    main()

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):


def main():
    n, i = map(int, input().split())
    print(n - i + 1)


if __name__ == '__main__':
    main()

Solution (Python):
N , i = map(int, input().split())

print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N-i+1)

Solution (Python):


N,i = map(int, input().split())

print(N - i + 1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
N, I = map(int, input().split())

print(N - I + 1)

Solution (Python):
N,i = map(int,input().split())
print(N-i+1)

Solution (Python):
a = input().split()
n = int(a[0])
i = int(a[1])

print(n+1-i)

Solution (Python):
N, i = map(int, input().split())
print(N + 1 - i)

Solution (Python):
N, i = map(int, input().split())
ans = N - i + 1
print(ans)

Solution (Python):
a, b = map(int, input().split())
print(a-b+1)

Solution (Python):
N,i=map(int,input().split())
print(N-i+1)

Solution (Python):
n,i = map(int, input().split())
print(n - i + 1)

Solution (Python):
a = input().split()
n = int(a[0])
i = int(a[1])
print(n - i + 1)

Solution (Python):
N, i = list(map(int, input().split()))
print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())
print(n - i + 1)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):
n, i = map(int, input().split())
print(n + 1 - i)

Solution (Python):
ip = input().split()
data = []
for i in ip:
    data.append(int(i))

ans = data[0]- data[1] + 1
print(ans)

Solution (Python):
N, i = map(int, input().split())
print(N - i + 1)

Solution (Python):


n, i = [int(i) for i in input().split()]

print(n - i + 1)

Solution (Python):
import sys

ns = lambda: sys.stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: [int(x) for x in ns().split()]
nall = lambda: [int(x) for x in sys.stdin.readlines()]

def main():
    n, i = na()
    print(n+1-i)

main()

Solution (Python):
N,i = [int(i) for i in input().split()]
print(N-i+1)

Solution (Python):
N,i = map(int,input().split(" "))

print(N - i + 1)

Solution (Python):
N, i = map(int, input().split())

print(N - i + 1)

Solution (Python):


n,i = map(int,raw_input().split())

print n-i+1

Solution (Python):
[a,b]=[int(i) for i in input().split()]

print(a-b+1)

Solution (Python):
n,i=map(int,input().split())
print(n-i+1)