beecrowd | 2922

Classrooms

By Ricardo Ramos Ribeiro, Senai Cimatec BR Brazil

Timelimit: 1

The programming teacher Barroquinha loves to pass URI questions to his students, but Professor Umbujahyba changed the network password and forgot to move to Barroquinha.

As Barroquinha does not see the room numbers very well, he asked you to develop an algorithm that calculates how many doors he must pass to arrive in the Umbujahyba room.

Input

The entry contains 2 integers B (0 <= B <= 150) and U (1 <= U <= 150), with the room of Barroquinha and Umbujahyba. The input ends in EOF

Output

Print the number of rooms that Barroquinha must pass to reach the Umbujahyba room.

Input Sample Output Sample

10 11

11 13

31 41

1 99

0

1

9

97