The representation of an integer in two's complement binary encoding is given. Output the decimal representation of this integer.
A string (2 \le |S| \le 16) consisting only of the characters and .
Output the decimal representation of the given integer.
Example 1
Example 2