PROGRAMMING:Take a jump
I believe everyone has played the jump in wechat app. emmm??? Just learning and not playing games? That's a loss... Read the question and understand it.
The simplified jump rule is as follows: players jump from the current box to the next box each time, if they don't jump to the next box, the game ends.
If you jump to the square but don't jump to the center of the square, you get 1 point;
When jumping to the center of the square, if the last score is 1 or this is the first jump of the game, the score is 2, otherwise the score is two points more than the last one (that is, when jumping to the center of the square continuously, the total score will be + 2, + 4, + 6, + 8...).
Now give a person jump the whole process, please find out his game score (according to the rules described in the title).
###Input format:
The input contains multiple numbers, separated by spaces. Each number is one of 1, 2, 0,
1 means the jump is on the block but not on the center,
2 means the jump is on the block and in the center of the block,
0 means that the jump did not jump to the box (at this time the game is over).
For all evaluation cases, no more than 30 numbers should be entered
###Output format:
Output an integer for the game score (under the rules of the problem).
###Input example:
```in
1 1 2 2 2 1 1 2 2 0
```
###Output example:
```out
twenty-two
```
answer:If there is no answer, please comment
The simplified jump rule is as follows: players jump from the current box to the next box each time, if they don't jump to the next box, the game ends.
If you jump to the square but don't jump to the center of the square, you get 1 point;
When jumping to the center of the square, if the last score is 1 or this is the first jump of the game, the score is 2, otherwise the score is two points more than the last one (that is, when jumping to the center of the square continuously, the total score will be + 2, + 4, + 6, + 8...).
Now give a person jump the whole process, please find out his game score (according to the rules described in the title).
###Input format:
The input contains multiple numbers, separated by spaces. Each number is one of 1, 2, 0,
1 means the jump is on the block but not on the center,
2 means the jump is on the block and in the center of the block,
0 means that the jump did not jump to the box (at this time the game is over).
For all evaluation cases, no more than 30 numbers should be entered
###Output format:
Output an integer for the game score (under the rules of the problem).
###Input example:
```in
1 1 2 2 2 1 1 2 2 0
```
###Output example:
```out
twenty-two
```
answer:If there is no answer, please comment