#K55112. Colon-Separated List Formatter
Colon-Separated List Formatter
Colon-Separated List Formatter
You are given a list of integers. Your task is to convert the list into a single colon-separated string.
For example, if the input is 34 -2 78 14
, then the output should be 34:-2:78:14
.
The input will be provided via standard input with the integers separated by whitespace, and you should output the result to standard output.
Hint: Consider reading all input numbers and then joining them by colons.
inputFormat
A single line containing a list of integers separated by spaces. There is no additional information regarding the number of integers.
outputFormat
A string where each integer from the input is joined by a colon. For example, input '1 2 3 4 5' produces output '1:2:3:4:5'.## sample
34 -2 78 14
34:-2:78:14