Task
Time limit: 1000 ms,
Memory limit: 32 Mb

The wizard Cedric invited Princess Sophia and her friends to play their version of the old game "Gorodki". Cedric arranged several columns in a row, which must be knocked down with a bat in order. Cedric knocked down the columns one after the other, starting from the very left, Sofia - from the right. At some point, they knocked the last column together.

After that, Cedric said that he had forgotten how many posts there were, but he remembers how many he shot down himself, and Sofia said how many posts she shot.
Help Cedric determine how many columns were in the beginning.

Input
Two numbers are input - the number of columns that Cedric and Sofia shot down, respectively (each not more than 100)
Output
Print the number of columns that were installed at the beginning of the game

Example
¹ input output
1 4 7 10

 

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: