Binary to decimal - MarisaOJ: Marisa Online Judge

Binary to decimal

Time limit: 1000 ms
Memory limit: 256 MB
Given an integer $n$ in binary representation, convert it to decimal representation. ### Input - A single line contains an integer $n$ in binary representation. ### Output - Print the decimal representation of $n$. ### Constraints - It is guaranteed that the decimal representation of $n$ is a positive integer that does not exceed $2^{31}-1$. ### Example Input: ``` 110 ``` Output: ``` 6 ```