PROGRAMMING:Binary to decimal
Write a function whose parameter is an integer n (n has only 1 and 0), and the return value is also an integer (assuming R). The rule is that the integer n is written out in binary form of R. For example: the parameter is 1111 and the return value should be 15. The main function inputs multiple groups of data, each data is an integer (binary number) composed of only 0 and 1, and outputs its corresponding decimal integer. All data are in the range of int type.
###Input example:
```in
0 1 10 11 1001 1111 110011 1111111
```
###Output example:
```out
0
one
two
three
nine
fifteen
fifty-one
one hundred and twenty-seven
```
answer:If there is no answer, please comment
###Input example:
```in
0 1 10 11 1001 1111 110011 1111111
```
###Output example:
```out
0
one
two
three
nine
fifteen
fifty-one
one hundred and twenty-seven
```
answer:If there is no answer, please comment