#Task
#You are given a string. Split the string on a " " (space) delimiter and join using a - hyphen.
#Input Format
#The first line contains a string consisting of space separated words.
#Sample Output this-is-a-string

print("Enter a string: ")
s = input().split(' ')
print('-'.join(s))
