A. Life of a Flower
Petya has got an interesting flower. Petya is a busy person, so he sometimes forgets to water it. You are given n days from Petya’s live and you have to determine what happened with his flower in the end.
The flower grows as follows:
- If the flower isn’t watered for two days in a row, it dies.
- If the flower is watered in the i-th day, it grows by 1 centimeter.
- If the flower is watered in the i-th and in the (i − 1)-th day (i > 1), then it grows by 5 centimeters instead of 1.
- If the flower is not