Merge two sorted arrays into one sorted array.
Input: two lines, each a sorted list of space-separated integers. Output: the merged sorted array, space-separated.
Your program reads from stdin and prints to stdout.
Example 1
Input: 1 3 5 2 4 6
Output: 1 2 3 4 5 6
Hints