2 Added scoring criteria, feel free to change if this was not your intending scoring

The Challenge

Your task is to create a program that takes any given string input, and outputs the input in a squared format. Empty strings should return an empty string.

Examples

Given the input:

golf


golf
o  l
l  o
flog


Input:

123


Output:

123
2 2
321


Input:

a


Output:

a


Input:

Hello, world!


Output (notice the space between the , and w - the gap is not just a newline):

Hello, world!
e           d
l           l
l           r
o           o
,           w

w           ,
o           o
r           l
l           l
d           e
!dlrow ,olleH


Scoring

This is , so the shortest answer in each language wins.

The Challenge

Your task is to create a program that takes any given string input, and outputs the input in a squared format. Empty strings should return an empty string.

Examples

Given the input:

golf


golf
o  l
l  o
flog


Input:

123


Output:

123
2 2
321


Input:

a


Output:

a


Input:

Hello, world!


Output (notice the space between the , and w - the gap is not just a newline):

Hello, world!
e           d
l           l
l           r
o           o
,           w

w           ,
o           o
r           l
l           l
d           e
!dlrow ,olleH


The Challenge

Your task is to create a program that takes any given string input, and outputs the input in a squared format. Empty strings should return an empty string.

Examples

Given the input:

golf


golf
o  l
l  o
flog


Input:

123


Output:

123
2 2
321


Input:

a


Output:

a


Input:

Hello, world!


Output (notice the space between the , and w - the gap is not just a newline):

Hello, world!
e           d
l           l
l           r
o           o
,           w

w           ,
o           o
r           l
l           l
d           e
!dlrow ,olleH


Scoring

This is , so the shortest answer in each language wins.

1

# Making Squared Words

The Challenge

Your task is to create a program that takes any given string input, and outputs the input in a squared format. Empty strings should return an empty string.

Examples

Given the input:

golf


golf
o  l
l  o
flog


Input:

123


Output:

123
2 2
321


Input:

a


Output:

a


Input:

Hello, world!


Output (notice the space between the , and w - the gap is not just a newline):

Hello, world!
e           d
l           l
l           r
o           o
,           w

w           ,
o           o
r           l
l           l
d           e
!dlrow ,olleH