LearnPy Hub
← Tuples & Sets problems
Easy

Add to a Set

Read words on one line into a set, then add the word on the second line. Print the sorted contents on one line.

Input

Two lines.

Output

One line.

Sample 1

Input
b a
c
Output
a b c

Sample 2

Input
a b
a
Output
a b
solution.py
Output appears here
Add to a Set · Python practice problem · LearnPy Hub