Complementary code - 2#5321

Complementary code - 2

1 second
128 megabytes
Very easy

The representation of an integer in two's complement binary encoding is given. Output the decimal representation of this integer.

Input

A string (2 \le |S| \le 16) consisting only of the characters and .

Output

Output the decimal representation of the given integer.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading