#C14517. Word Lengths Dictionary

    ID: 44175 Type: Default 1000ms 256MiB

Word Lengths Dictionary

Word Lengths Dictionary

You are given a sentence as input. Your task is to create a dictionary (or its equivalent in your chosen language) where each key is a word from the sentence and its value is the length of that word.

The sentence will be provided via standard input (stdin) and your program must output the dictionary in a JSON-like format to standard output (stdout). Each word is separated by one or more whitespace characters. If the input is an empty string, you should output an empty dictionary: {}.

Note: The output format must exactly match the expected format. For example, if the input is "Hello world this is a test", your output should be:

{"Hello": 5, "world": 5, "this": 4, "is": 2, "a": 1, "test": 4}

Be mindful about spaces, punctuation, and quotation marks in the output.

inputFormat

The input consists of a single line containing the sentence.

outputFormat

Output a JSON object (dictionary) where each key is a word from the input sentence and its corresponding value is the length of that word. The output should be printed to standard output exactly in the specified JSON format.

## sample
Hello
{"Hello": 5}