"""
You are given a string. Split the string on a " " (space) delimiter and join using a {* star}.

Function Description:
Complete the split_and_join function in the editor below.
The split_and_join function has the following parameters:
- string line: a string of space-separated words

Returns:
- string: the resulting string

Input Format:
The one line contains a string consisting of space separated words.
"""

def split_and_join(line):
    # write your code here
    return "-".join(line.split(" "))

if __name__ == '__main__':
    line = input()
    result = split_and_join(line)
    print(result)