## DMPG '17 B6 - Multiply and Surrender

View as PDF

Points: 7 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Roger has found numbers, numbered . Roger wants to know how many digits there are in the binary representation of the product . Help Roger find this number!

#### Input Specification

The first line will consist of a single integer, .
The next line will consist of space separated integers, .

#### Output Specification

Print the number of digits in the binary representation of the product .

1 10
2 90

#### Sample Input

5
2 2 2 2 2

#### Sample Output

6

#### Explanation of Sample Output

Let denote a decimal number and denote a binary number. .