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 Rust (1.15.1) (judge verdict: Accepted)

use std::io::{self};

fn main() {
    let mut s = String::new();
    io::stdin().read_line(&mut s).unwrap();
    let s = s.trim_right().to_owned();
    let vec: Vec<&str> = s.split_whitespace().collect();
    let n: i32 = vec[0].parse().unwrap_or(0);
    let i: i32 = vec[1].parse().unwrap_or(0);
    println!("{}", format!("{}", n - i + 1));
}