For the second hole of
's golf course, he would like to hang up a picture he took.There is a wall that consists of 10 of the letter x
. has a picture that he would like to hang up on the wall.
The picture is simply an even-lengthed string that can fit on the wall (will not exceed 10 in length). When the picture is hung up on the wall, it will be placed over the x
s on the wall. He wants to see what this picture would look like if it were hung up in the middle, right, and left of the wall.
has found an interesting way to do this, and would like to see if you can figure it out as well.
Input Specification
A string , where the length of
is less than or equal to
, and has an even length.
Output Specification
Output 3 strings on 3 separate lines:
- The first should have the string
positioned in the center of the wall
- The second should have the string
positioned on the right of the wall
- The third should have the string
positioned on the left of the wall
The x
s on the wall should remain visible if not covered by the picture. It is possible that the picture takes up the entire wall, and so all 3 strings would be identical.
Scoring
If the program outputs the strings correctly in order, you will receive a score of (for each test case)
if the length of the code in bytes exceeds
if the length of the code in bytes is less than
where
is the length of code in bytes, if
Sample Input 1
golf
Sample Output 1
xxxgolfxxx
xxxxxxgolf
golfxxxxxx
Comments