Complementary code - 2
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The number is given in binary complement code. Print the decimal notation of this number.
Input
One string S (2 ≤ |S| ≤ 16) that contains sequence of 0 and 1.
Output
Print the number in decimal notation .
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 625
Acceptance rate 42%