AlgoBazaAlgoBaza
Back to tasks

Alphabetically

Beginner

Python for kids 路 Lesson 27: Comparing text

Problem Statement

Read two words and print them in alphabetical order, each on its own line.

Input Format

Two words, each on its own line (small letters only, no spaces).

Output Format

Exactly the text from the example.

Examples
Example 1

Input

pies
kot

Output

kot
pies
Example 2

Input

ala
ola

Output

ala
ola