#P388. 练67.2  金猪大家庭

练67.2  金猪大家庭

Description

The Golden Pig family is mainly composed of sows. A young sow can give birth to 22 young sows and 22 young boars in the second year, and from the third year onwards, she can give birth to 44 young sows and 44 young boars each year. Young boars are driven out of the family in their second year. The lifespan of a pig is only six years.
Currently, a new Golden Pig family is being formed: a young sow starts her own Golden Pig family.

Input Format

A single line containing a positive integer nn (1n351 \leq n \leq 35).

Output Format

A single line containing a positive integer: the number of members in the Golden Pig family in the nn-th year.

Sample

3
19