All problems

Title Case Check

easyPythonStrings

A magazine's style guide says headlines are set in title case: every word begins with a capital letter, including the short ones. Before a piece is published, an editing tool checks the headline against that rule and gives a plain verdict. The rule only concerns the first letter of each word; the rest of the word is nobody's business.

Task: Read a headline and report whether every word in it begins with a capital letter.

Input

A single line holding a headline of 1 to 200 characters. Words are made of letters and are separated by single spaces. There is at least one word.

Output

One line holding exactly Yes if every word begins with an uppercase letter, or exactly No otherwise.

Example:

Input:
The Quick Brown Fox

Output:
Yes

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…