#K73937. Sentence Classification
Sentence Classification
Sentence Classification
In this problem, you will be given a sentence as input. Your task is to determine the type of the sentence by examining its ending punctuation. The sentence is classified as follows:
- If it ends with a period (( . )), it is a ( \textbf{statement} ).
- If it ends with a question mark (( ? )), it is a ( \textbf{question} ).
- If it ends with an exclamation mark (( ! )), it is an ( \textbf{exclamation} ).
- Otherwise, the sentence is classified as ( \textbf{unknown} ).
The input will be provided via standard input (stdin) and the output must be printed to standard output (stdout).
inputFormat
The input consists of a single line containing a sentence. Note that the sentence can be empty.
outputFormat
Output a single line containing one of the following strings: "statement", "question", "exclamation", or "unknown", according to the ending punctuation of the input sentence.## sample
How are you doing?
question
</p>