Problem Description

Given a number represented in binary, print out the number represented in base 10 (decimal).

Input

The only input would be the number represented in binary.

The number would be positive and smaller than 231 in all testcases.

Output

A single number, which is the number represented in base 10 (decimal).

Sample Input

1110

Sample Output

14