Problem: Sara and Tara were two young girls who had a really bad handwriting.So they decided to write down a word. Being highly passionate about improving their handwriting as well using there creative mind, they also wrote down the same word again but this time  starting from the last letter to the first letter with the internal letters being separated by a dash '-'.When they both grew a little more older they decided to do the same on the computer but were unsuccessful.Thus they approached you for help to display it in the similar fashion via programming. Take care that the number of letters in the  word has  minimum 3 letters.
INPUT
First line contains the word given as input.
OUTPUT
The first line shows the original word.
The second line shows the word reversed and the internal letters separated by a dash '-'.

SAMPLE INPUT
Useful

SAMPLE OUTPUT
U-s-e-f-u-l
l-u-f-e-s-U

Solution (in PYTHON):

Solution:
import sys
s=raw_input()
rev=s[::-1]
l=len(s)
for i in range(0,l-1,1):
 sys.stdout.write(s[i]+"-")
print s[i+1]
for i in range(0,l-1,1):
 sys.stdout.write(rev[i]+"-")
print rev[i+1]