LearnPy Hub
← Lists problems
Medium

Merge Two Lists

Read two lines of integers, each already sorted. Print one sorted list containing all the numbers.

Input

Two lines.

Output

One line.

Sample 1

Input
1 4 7
2 3 9
Output
1 2 3 4 7 9

Sample 2

Input
1
1
Output
1 1
solution.py
Output appears here
Merge Two Lists · Python practice problem · LearnPy Hub