#include<stdio.h>
int main()
{
          int i,j,N;
          scanf("%d %d",&N,&i);
          if((1<=N && N<=100)&&(1<=i && i<=N))
          {
                    j=(N-i)+1;
                    printf("%d\n",j);
          }
          return 0;
}