#P416. 【例72.1】 二进制转化为十进制

【例72.1】 二进制转化为十进制

Description

Convert a binary number to its decimal equivalent.

Input Format

The first line contains a positive integer nn (1n301≤n≤30), indicating the length of the binary number.
The second line contains a binary number.

Output Format

Output an integer representing the decimal equivalent of the binary number.

Sample

5
10101
21