#### Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

The National Organisation of Illegal Activities and Whatever not (NOI) is back, and this time it wishes to uncover Barr the bear's deepest darkest secrets! However, ever the cunning one, Barr the bear has obfuscated all secret information he has on him and kept them safely on tiny pieces of paper in a jar.

With some luck and a bit of skill, the NOI has managed to steal Barr's jar and figure out Barr's method of obfuscation. It goes like this:

- Suppose Barr's message consists of
*N*characters. - Barr first finds a matrix consisting of
*R*rows and*C*columns such that*R*≤*C*and*R***C*=*N*. If there is more than one such matrix, he chooses the one with the most rows. - Barr writes his message into the matrix in row-major order. In other words, he writes the first segment of the message into the first row, the second segment into the second row and so on.
- The message he writes on the piece of paper is the matrix read in column-major order.

Now, the NOI has hired you to help them find out Barr's original messages in the jar!

## Input

The input contains Barr's obfuscated message, a string of lowercase letters of the English alphabet (with no spaces).

The number of letters will be between 1 and 100.

## Output

Output Barr's original message.## Sample Input 1

ihloinkeey

## Sample Output 1

ilikehoney

## Explanation for Sample Output 1

Barr's secret message is "ilikehoney" containing 10 letters. He can use a 1x10 or 2x5 matrix. Of these, the 2x5 has the most rows. When the message is written into it, the matrix looks like this:

i | l | i | k | e |

h | o | n | e | y |

### Tags

### Subtasks and Limits

Subtask | Score | #TC | Time | Memory | Scoring |
---|---|---|---|---|---|

1 | 0 | 1 | 1s | 32MB | Average |

2 | 100 | 8 | 1s | 32MB | Average |

### Judge Compile Command

g++ ans.cpp -o obfuscate -Wall -static -O2 -lm -m64 -s -w -std=gnu++14 -fmax-errors=512