rev-dash
Source: hackerearth
Difficulty: UNKNOWN_DIFFICULTY

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


import sys
a=input()
l=len(a)
for i in range(0,l):
	print(a[i], end=' ')
	sys.stdout.softspace=0
	if i!=l-1:
		print('-', end=' ')
		sys.stdout.softspace=0
a=a[::-1]
print('\r')
for i in range(0,l):
	print(a[i], end=' ')
	sys.stdout.softspace=0
	if i!=l-1:
		print('-', end=' ')
		sys.stdout.softspace=0






'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
#print 'Hello World!'

a= input()
print('-'.join(map(str,a)));
b=list(a)
b.reverse()
print('-'.join(map(str,b)));


a = input()
b = '-'.join(a)
print(b)
print(b[::-1])


import sys
x = input()
for t in range(0,len(x)-1):
	sys.stdout.write( x[t]+"-")
print(x[len(x)-1])
x = x[::-1]
for t in range(0,len(x)-1):
	sys.stdout.write( x[t]+"-")
print(x[len(x)-1])


s=input()
if len(s)>=3:
	t=''
	for i in range(len(s)-1):
		t=t+s[i]+'-'
	t=t+s[len(s)-1]
	print(t)
	t=''
	s=s[::-1]
	for i in range(len(s)-1):
		t=t+s[i]+'-'
	t=t+s[len(s)-1]
	print(t)