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 in Pascal (FPC 2.6.2) (judge verdict: Accepted)

{ Free PascalのHello, world.(日本語版) }
 
program Hello;
 
{$MODE OBJFPC}
{$CODEPAGE UTF8}
{$LONGSTRINGS ON}
 
uses
  SysUtils,
  Classes;

procedure MainFunc;
	procedure GetInput(var Length : Integer; var Num : Integer);
		var
			str : string;
			strlist : TStringList;
		begin
			Readln(str);
			strlist := TStringList.Create;
			try
				strlist.Delimiter := ' ';
				strlist.DelimitedText := str;
				Length := StrToInt(strlist.Strings[0]);
				Num := StrToInt(strlist.Strings[1]);
			finally
				FreeAndNil(strlist);
				end;
		end;
	var
		trainLength : Integer;
		trainNum : Integer; 
	begin
		GetInput(trainLength, trainNum);
		WriteLn(trainLength - trainNum + 1);
	end;
	
begin
	MainFunc;
end.