// Description
Convert a binary number to its decimal representation.
// Input
A single line containing a binary string (length <= 31).
// Output
The decimal value of the binary number.
// Hint
Each digit contributes its bit weight; or just parse base 2.