#C10277. Plant Doubling Problem

    ID: 39464 Type: Default 1000ms 256MiB

Plant Doubling Problem

Plant Doubling Problem

In this problem, you are given two integers, (I) and (d), where (I) is the initial number of plants and (d) is the number of days. Each day, the number of plants doubles. Your task is to compute the number of plants at the end of (d) days using the formula: (P = I \times 2^d).

For example, if (I = 3) and (d = 2), then (P = 3 \times 2^2 = 12).

inputFormat

The input consists of a single line containing two space-separated integers: the initial number of plants (I) and the number of days (d).

outputFormat

Output a single integer representing the number of plants at the end of the (d) days.## sample

3 2
12