Initials

Lab Python Beginner 10 points

Read a full name with exactly three words and print the initials in upper case separated by dots, like A.B.C.

Input

One line: three words.

Output

The initials.

Example

Input

ada byron lovelace

Output

A.B.L.
Sample input available Sample output available
Editor
Python

Hints

split() breaks the name into words.

Take [0] of each word and upper-case it.

Solution explanation

Unpacking the result of split() into three variables documents that exactly three words are expected.

Show solution
first, middle, last = input().split()
print(f"{first[0].upper()}.{middle[0].upper()}.{last[0].upper()}.")
Output
Answer
HOME LEARN COMMUNITY DASHBOARD