Uppercase and lowercase words

Write a program that, given a sequence of words, each one with at most six characters, all letters, prints the first word that starts with an uppercase letter and the first word that starts with a lowercase letter.

Input

Input consists of a sequence of words, each one with at mots six characters, all letters.

Output

Your program must print two lines, the first one with the first word that starts with an uppercase letter, and the second one with the first word that starts with a lowercase letter. If do not exist any or none of them, indicate it as it is shown in the examples.

Observations

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:23:44.663Z

© Jutge.org, 2006–2026.
https://jutge.org