13625 - Binary Numbers to Decimal Numbers   

Description

輸入一個 二進位的整數,請將它轉為 十進位 的表示法

 

舉例:

- 輸入的數為 10101,則需輸出 21

- 輸入的數為 1111001,則需輸出 121

Input

一個 整數 *Binary

 

Note:

  1. *Binary 最多不會超過 5 個 bits;11111 >= *Binary >= 0

Output

輸出符合以下格式:

*Decimal

 

Note:

  1. 輸出的最後必須要有一個換行符號 ('\n')

Sample Input  Download

Sample Output  Download

Tags




Discuss