Inspired by IBM's Blue Gene project, the CEO of Universal Biological Machinery (UBM) has called on you, UBM's top software engineer. The company's privately subsidized space program found a virus on Mars, the Areopagusvirus, and you have to write a program that calculates how it mutates.
The input is a non-empty series of up to 100 data sets. Each data set follows the description below, and no blank lines separate the data sets.
A single data set has three parts.
START N, where 1≤N≤20.END.A single line ENDOFINPUT follows the final data set.
For each data set there is exactly one output set, and no blank lines separate the output sets.
A single output set is one line holding the viral code after it has stabilized through mutating. The viral code mutates according to the following rules.