In the processing of radioactive materials, two types of waste are produced: highly hazardous (type A) and safe (type B). Both types are stored in identical containers, which are then stacked vertically. A stack becomes explosive if it includes more than one consecutive container of type A. Given a total of containers, calculate the number of possible configurations for safe stacks.
The first line contains the number (1 \leq N \leq 1000).
Output a single integer representing the number of safe stack configurations.
Example 1