Problem Description

Read n names (one per line). Make function norm(name) which trims spaces and converts to Title Case (first letter uppercase, rest lowercase per word). Output normalized names.

Input Format

First line n. Next n lines name (may contain spaces).

Output Format

n lines normalized.

Sample Test Case

Input:
3 ravi kumar NEHA shARMA aMAN
Output:
Ravi Kumar Neha Sharma Aman

Constraints

Total characters

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next