SMS
SMS messages cell phone MOBILA composed of capital letters. If the first letter on the button, you press this button once to add a letter in the message. If the letter is the second - you need to press the button twice, etc. So, to type the word "SMS", you need to press
(PQRS)(PQRS)(PQRS)(PQRS)(MNO)(PQRS)(PQRS)(PQRS)(PQRS)
To enter two letters are on one button, you from pressing pause. For example, to enter a message "AA", you need to press
(ABC)(pause)(ABC)
If the button three letters, then as soon as this button is pressed three times, the last letter added to the message immediately, and the next pressing the same button again refer to the next letter of the message. Similarly, if a button on the four letters, then after four clicks in the message will be added to the last letter. That is the sequence of keystrokes
(ABC)(ABC)(ABC)(ABC)(pause)(ABC)
message "CAA". Unfortunately, the cell phones of this model have not produced, and there was only one such phone. It can randomly insert and ignore pauses while typing messages, which may lead to some changes in messages. For example, typing MOSCOWQUARTERFINAL, you can get instead OMSCMNWQTTARTERPDEINAL. You have received an SMS-message and know that the original message contains N letters. To determine the probability of guessing the original message, find the number of possible messages that may have become that which you received.
Input
The first line specifies the length of the original message N. The second line contains the received SMS-message.
1 ≤ N ≤ 80, the received message contains only uppercase letters, the length of the message received - from 1 to 80 letters.
Output
Deduce the number of messages of N letters, which, when dialed on this phone can turn into this.