val1,val2=input().split(" ")

val3=int(val1)-int(val2)+1

print(val3)
def main():

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

    print((N - i + 1))

 

if __name__ == "__main__":

    main()
val1, val2 = input().split(" ")
val3 = int(val1) - int(val2) + 1
print(val3)

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


if __name__ == "__main__":
    main()

-val1, val2 = input().split(" ") -val3 = int(val1) - int(val2) + 1 -print(val3) +def main(): +    N, i = list(map(int, input().strip().split())) +    print((N - i + 1)) + + +if __name__ == "__main__": +    main()