PROGRAMMING:Binary to decimal
###Task description
```
Read in a binary sequence starting with 1, please convert it to decimal output( Solve with loop, can't use array and function)
```
###Input format:
```
Several rows, each row represents a group of data, is a 1-0 sequence of binary numbers, up to 30 bits. All data consists of 1, 0 and carriage return only, and does not contain any other white space characters.
```
###Output format:
```
The decimal number converted from each group of data is output in turn, and each output result occupies a separate line.
```
###Input example:
```in
one thousand and one
1000000000000000000000000000000
eleven million one hundred and ten thousand and eleven
eleven million one hundred and ten thousand one hundred and eleven
eleven million one hundred and eleven thousand one hundred and eleven
one hundred and one
one
```
###Output example:
```out
nine
one billion seventy-three million seven hundred and forty-one thousand eight hundred and twenty-four
two hundred and forty-three
two hundred and forty-seven
two hundred and fifty-five
five
one
```
answer:If there is no answer, please comment
```
Read in a binary sequence starting with 1, please convert it to decimal output( Solve with loop, can't use array and function)
```
###Input format:
```
Several rows, each row represents a group of data, is a 1-0 sequence of binary numbers, up to 30 bits. All data consists of 1, 0 and carriage return only, and does not contain any other white space characters.
```
###Output format:
```
The decimal number converted from each group of data is output in turn, and each output result occupies a separate line.
```
###Input example:
```in
one thousand and one
1000000000000000000000000000000
eleven million one hundred and ten thousand and eleven
eleven million one hundred and ten thousand one hundred and eleven
eleven million one hundred and eleven thousand one hundred and eleven
one hundred and one
one
```
###Output example:
```out
nine
one billion seventy-three million seven hundred and forty-one thousand eight hundred and twenty-four
two hundred and forty-three
two hundred and forty-seven
two hundred and fifty-five
five
one
```
answer:If there is no answer, please comment