#C12729. Text Summarization Simulation
Text Summarization Simulation
Text Summarization Simulation
You are given a block of text from the standard input. Your task is to generate a summary of the text. The summary is defined as the substring from the beginning of the text up to and including the first occurrence of a period ('.'). If the text does not contain a period, then the summary is the entire text.
For example, if the input is: Hello world. This is extra text.
then the output should be: Hello world.
inputFormat
The input consists of a single text block provided via standard input. The text may contain multiple sentences. All the input should be read from standard input.
outputFormat
Output the summary of the text to standard output. The summary is defined as the substring from the beginning of the text up to and including the first period. If there is no period, output the entire text.## sample
Hello world. This is extra text.
Hello world.