Problem list
Log in
#r03085 · Online Judge > GoldOJ

Rejoin the Words

Bronze III 2.0 s 1024 MB

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
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code