407162: GYM102697 133 Question-able Difficulty

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

133. Question-able Difficultytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

You consider a string to be a question if its last character is a question mark. Given a string, figure out whether or not it is a question.

Input

The only line of input contains a single string $$$s$$$.

Output

If the given string is a question (if it has a question mark on the end), output "YES" (no quotes). Otherwise, output "NO" (no quotes).

ExamplesInput
Welcome to the CodeRams contest?
Output
YES
Input
We hope you like the problems!
Output
NO
Input
Good luck today
Output
NO

加入题单

上一题 下一题 算法标签: