AlgoBazaAlgoBaza
Back to tasks

First in the dictionary

Beginner

Python for kids 路 Lesson 27: Comparing text

Problem Statement

Read two words and print the one that comes earlier in alphabetical order (like in a dictionary).

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
Example 2

Input

koza
kot

Output

kot