10237 - Bacterium   

Description

There is a kind of bacterium(細菌) and its life is 3 week.

At end of first week, it divides into 2 bacteria.

At end of second week, it divides into 2 bacteria again.

At third week, it does nothing and die.

 

For example, we have one bacterium at first week.

At begin of 5th week, there are total 10 bacteria.

 

Now, give you week W. You should tell me how many bacterium at begin of Wth week.

 

Input

One integer, week W.

1<= W <=40

Output

How much bacterium at begin of Wth week.

Sample Input  Download

Sample Output  Download

Tags

助教忘記說要打\n tag神助攻 :) 10401HW10



Discuss