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:
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
a=raw_input()
l=list(a)
r=list(a)
r.reverse();
l="-".join(l)
r="-".join(r)
print l;
print r;