For centuries, people have been looking for secret messages that are hidden in books, songs played backward1, funny-looking Martian mensas2, or some other objects. Some believe that hidden messages in the Bible cannot be just coincidence — they must have been put in there deliberately by God himself.

The hunt for hidden messages in the Bible has been popularized in modern times by the book The Bible Code3. It was written by American journalist Michael Drosnin, who claims that the Hebrew Bible contains a very complex code that reveals events that took place thousands of years after the Bible was written. Drosnin contends that some foretold events later happened exactly as predicted. Drosnin asserts that the Bible also contains hidden messages that predict the future.

cover van boek over bijbelcodes
Michael Drosnin's book The Bible Code (New York, Simon and Schuster, 1997) revived the hunt for secret messages in the Bible.
artikel van The Sun over bijbelcodes
The Bible Code has been reviewed widely and has stimulated pieces in Newsweek, Time and Sun. Drosnin has also been making the rounds of the talk-show circuit, including the Oprah Winfrey Show in June 1997. Time said that Warner has reportedly bought the movie rights.

To find hidden messages, Drosnin makes use of a simple technique: start at a given letter in a text and repeatedly step a fixed number of letters forward of backward. Consider this verse in the Book of Genesis (King James Version):

31:28 And hast not suffered me to kiss my sons and my daughters? Thou hast now done foolishly in so doing.

If you start at the R in daughters, skip over three letters to the O in thou, three more to the S in hast, and so on, the hidden message Roswell is revealed! A companion hidden message — UFO — is found by starting at the U in thou, and repeatedly stepping forward 12 letters. This can't be a coincidence, no?

Bible verse Genesis 31:28 (King James Version) "And hast not suffered me to kiss my sons and my daughters? Thou hast now done foolishly in so doing." contains the word Roswell if we start reading at the R in daughters, and skip over three letters to the O in thou, and three more to the S in hast, and so on. The word UFO is found if we start reading at the U in thou, and repeatedly step forward 12 letters.

Bible verses Genesis 26:5-10 (King James Version) show that it is also possible to read hidden words backwards, as illustrated for the words BIBLE and CODE.

Bible verses Genesis 26:5-10 (King James Version). The words BIBLE and CODE can be read backwards in the text. The text has been arranged into a grid to line up the letters from the "hidden messages" together vertically.

The claim that no human could have encoded the Bible in this way and that the messages cannot be just coincidence, has been questioned many times. Some critics of Drosnin say the journalist is just data mining: in any text a large amount of hidden messages can be found using Drosnin's technique and a little bit of creativity. Michael Drosnin responded to the criticism in Newsweek, by stating that

When my critics find a message about the assassination of a prime minister encrypted in Moby Dick, I'll believe them.

Mathematician Brendan McKay and his colleagues of the Australian National University took up the challenge, and proved that this really is not all that challenging4.

Input

You are given a Bible verse that contains a hidden word of $$n$$ letters. The hidden word can be read starting at the letter on position $$i$$ and repeatedly stepping forward $$d$$ letters (or backward in case $$d$$ is negative). The characters in the Bible verse that are not letters should be ignored in determining the position of the letters.

The input contains three integers, each on a separate line:

This is followed by one or more lines containing the text of the Bible verse. The text itself ends with an empty line.

Output

The hidden word that can be read from the given Bible verse if the instructions as described by the input are followed. In case reading the hidden word falls beyond the start (in case you need to read backwards) or the end (in case you need to read forward) of the Bible verse, the hidden word must be completed with extra question marks at the end, until it has the required length.

Example

Input:

45
4
7
And hast not suffered me to kiss my sons and my daughters?
thou hast now done foolishly in so doing.

Output:

roswell

Example

Input:

14
19
7
Do not be anxious about anything, but in everything,
by prayer and petition, with thanksgiving,
present your requests to God.

Output:

sense??

Example

Input:

30
-3
3
I could destroy you,
but the God of your father appeared to me last night and told me,
'Be careful about what you say to Jacob!

Output:

ufo

Resources