Vicky is a magician who loves math. She has great power in copying and creating.

One day she gets an array {1}。 After that, every day she copies all the numbers in the arrays she has, and puts them into the tail of the array, with a signle '0' to separat.

Vicky wants to make difference. So every number which is made today (include the 0) will be plused by one.

Vicky wonders after 100 days, what is the sum of the first M numbers.

One day she gets an array {1}。 After that, every day she copies all the numbers in the arrays she has, and puts them into the tail of the array, with a signle '0' to separat.

Vicky wants to make difference. So every number which is made today (include the 0) will be plused by one.

Vicky wonders after 100 days, what is the sum of the first M numbers.

提交代码