90. Newspaper Headline

Acceptance — 0 accepted 0 submissions

Easy
Strings
No companies listed
The newspaper editor wants every headline in Title Case: the first letter of each word capital, and the rest small.

Given a headline, convert it to Title Case.

Input Format
A single line of words (letters only) separated by single spaces.

Output Format
Print the headline in Title Case.

Constraints
• 1 ≤ length ≤ 1000

Example 1

Input
india wins the world cup
Output
India Wins The World Cup

Explanation Each word starts with a capital.

Example 2

Input
hELLO cHENNAI
Output
Hello Chennai

Explanation The rest of each word is made small.

Example 3

Input
a
Output
A

Explanation A single letter becomes A.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
India Wins The World Cup
No results yet
Run your code to test it against the sample cases.
Problem List