Олимпиадный тренинг

Задача 38205. Cards


Vasya laid out 100 cards in a row from left to right, on which the numbers 1, 2, 3, …, 100 are written, respectively (numbers down). After that, he swapped the cards on which the numbers i and j are written. Petya opens the cards in turn from left to right. What is the minimum number of cards he will have to open in order to find out exactly which cards Vasya swapped?

Input
Two numbers i (1 ≤ i ≤ 100) and j (1 ≤ j ≤ 100) are entered. Numbers are written with a space.

Imprint
It is required to display one number – the minimum number of cards Petya needs to open.
 
Examples
# Input Output
1 10 20 10