Combine Lists


Submit solution


Points:100 (partial)
Time limit:0.3s
Memory limit:32M

Tags
Arrays
Difficulty
Preparation

Allowed languages
C#, java, JavaScript

Write a program that reads two lists of numbers and combines them by alternatingly taking elements:

  • combine 1,2,3 and 7,8,9 -> 1,7,2,8,3,9
  • you can assume that the input lists will have the same length.

Print the resulting combined list to the output, separating elements with a comma.

Input

  • On the first line you will receive the first list.
  • On the second line -> 2nd list.

Output

  • On the only line of output, print all the numbers in format n1,n2,n3,..n

Input

2,3,1
5,2,3

Output

2,5,3,2,1,3

Comments

There are no comments at the moment.