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):
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):
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,M=map(int,input().split())
print(N-M+1)

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):
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):

import sys
input = sys.stdin.readline

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=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,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):


from collections import deque
import itertools as it
import sys
import math

sys.setrecursionlimit(10000000)

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,M=map(int,input().split())
print(N-M+1)

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

print (N - i + 1)

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

print(N - i + 1)

Solution (Python):





def main(n, i):
    retval = n - i + 1
    print(retval)
    
if __name__ == '__main__':
    try:
        n, i = list(map(int,input().strip().split(" ")))
        main(n, i)
    except EOFError:
        pass

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

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

    ans = N - i + 1
    print(ans)


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):
from sys import stdin, stdout

input = lambda: stdin.readline().rstrip()
write = stdout.write

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

main()

Solution (Python):
inputs = input().strip().split()

N = int(inputs[0])
i = int(inputs[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):
a=list(map(int, input().split(" ")))
print(a[0]-a[1]+1)

Solution (Python):
def getN():
    return int(input())

def getMN():
    a = input().split()
    b = [int(i) for i in a]
    return b[0],b[1]

def getlist():
    a = input().split()
    b = [int(i) for i in a]
    return b

N, M =getMN()
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+1-i)

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())

ans = N - i + 1
print(ans)

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

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):
a,b = map(int, input().split())
c = a-b+1
print(c)

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

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

print(m-q+1)

Solution (Python):
x,y = map(int,input().split())
print(x-y+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 = 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().strip().split(" "))

print(N-i+1)

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

print(N-i+1)

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

print(str(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())
    ans = n - i + 1
    print(ans)

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):
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+1-i)

Solution (Python):

nums = [int(num) for num in input().split()]
n = nums[0]
i = nums[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):
na = lambda: list(map(int, input().split()))

n, i = na()
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):



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


if __name__ == '__main__':
    main()

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):
inp = input()
 
data = inp.split()

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

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):
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):
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+1-i)

Solution (Python):
n,k=map(int,input().split())
print(n-k+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 numpy as np
import math

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

print(N - i + 1)

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

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

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

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

Solution (Python):


INF = float('inf')


def inpl(): return list(map(int, input().split()))


a, b = inpl()

print(a - b + 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(abs(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 = list(map(int, 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):

import math,string,itertools,fractions,heapq,collections,re,array,bisect

def s():
    return input()
def n():
    return int(input())
def d():
    return float(input())

def ls():
    return input().split()
def ln():
    return map(int, input().split())
def ld():
    return map(float, input().split())

def fs():
    return [input() for i in range(input())]
def fn():
    return [int(input()) for i in range(input())]
def fd():
    return [float(input()) for i in range(input())]

N,i = ln()



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):
def abc107_a():
    import sys
    input = sys.stdin.readline

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

    return n - i + 1


print(abc107_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+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):

x,y = map(int,input().split())	
print(x-y+1)

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

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

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

print a-b+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+1-i)

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

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):
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, m = map(int, input().split())
print(n-m+1)

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

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

print(n + 1 - i)