A line of space-separated words is given, then a separator $D$ on the next line. Print the words joined by $D$.
Input
Line 1: 1 to 20 lowercase words. Line 2: separator $D$ (length 1 to 3).
Output
Print the words joined with $D$.
Example 1
Input
apple banana cherry -
Output
apple-banana-cherry
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.