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-----
4 2

-----Sample Output-----
3

The second car from the front of a 4-car train is the third car from the back.

Difficulty: introductory

Starter code:

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

print(N - i + 1)

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

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

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

print(n-i+1)

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

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

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

def mapt(fn, *args):
    return list(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))

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


main()

#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
#a = [list(input()) for _ in range(n)]
#a = [int(input()) for _ in range(n)]

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

print((n-i+1))


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

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

print(N - i + 1)

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

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

print((n - i + 1))


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

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

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

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

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

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

solve()

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




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

print(N-i+1)

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

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

print((n-i+1))


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

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

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

print(N + 1 - i)

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

print(N - i + 1)

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

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

def __starting_point():
    main()

__starting_point()


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


def __starting_point():
    main()

__starting_point()

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

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

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


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

import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    N, i = list(map(int, readline().split()))

    print((N - i + 1))

    return


def __starting_point():
    main()

__starting_point()

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


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

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

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

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

print(n-i+1)

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


train_len, target_vehicle = list(map(int, input().split()))

target_from_backside = train_len - (target_vehicle - 1)
print(target_from_backside)


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

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

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


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

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

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

print(k-i+1)

import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return list(map(int, stdin.readline().split()))
def nl(): return list(map(int, stdin.readline().split()))


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


def __starting_point():
    main()

__starting_point()

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


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

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

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

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


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

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

a,b=input().split()
a=int(a)
b=int(b)
print(int(a-b+1))

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

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

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

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

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

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

print(n-i+1)

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

print(N-i+1)

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

n,m = [int(x) for x in input().split()]
print(n-m+1)

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

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


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

print(n-i+1)

A,B =map(int,input().split())

print(A-B+1)

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

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

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

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

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

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

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

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

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

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

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


# ABC107
# A Train
N, i = list(map(int, input().split()))
print((N - i + 1))


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

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

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

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

a,b = map(int,input().split())

print(a- b + 1)

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

print(N - i + 1)

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

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

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

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

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

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

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

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