Hsueh- has a keyboard.
There is a string which has $$$x$$$ characters in the textarea.
At present, Hsueh- wants to see a string of length exactly $$$n$$$ in the textarea.
You can use the following operations to meet Hsueh-'s requirements.
Hsueh- wants to know the minimum number of strokes required to see a string of length exactly $$$n$$$ in the textarea.
What is different from your traditional perception is, if you press Ctrl + A to select all characters and then enter a character or paste some characters, the selected characters will not be deleted. In other words, if you select all characters in the textarea and then enter a character or paste some characters, it will not replace the selected characters but append the characters you enter or paste at the end.
The first line contains two integers $$$x, n(0 \leq x \leq 10^6, 1 \leq n \leq 10^6)$$$, denoting the length of the string which originally appeared in the textarea and the length of the string which Hsueh- wants to see.
Print a single integer in one line: the minimum number of strokes required to see a string of length exactly $$$n$$$ in the textarea.
1 4
3
100 199
7