#C9659. Auto Correct Document

    ID: 53776 Type: Default 1000ms 256MiB

Auto Correct Document

Auto Correct Document

You are given a document string. Your task is to auto-correct the document by converting all characters to lowercase and then capitalizing the first letter of each sentence. Sentences are defined to be separated by a single space following a period.

For example, if the input document is:

hello world. this is an example. can you fix it?

Then the output should be:

Hello world. This is an example. Can you fix it?

If a document does not contain any period followed by a space, simply convert it to lowercase and capitalize the first character.

Note: The input should be read from standard input (stdin) and the output should be written to standard output (stdout).

inputFormat

The input consists of a single line containing the document string. The string may include spaces, punctuation, and mixed cases.

outputFormat

Output the auto-corrected document string after processing as described.

## sample
hello world.
Hello world.