All Tracks Algorithms String Algorithms String Searching Problem

B.Search Me
/
No tags
Problem
Editorial
Analytics

Nayan loves to play with strings. He often tests people by challenging them with tough substrings. He has a problem for you as well. 

You are given a substring " to the " , your task is to check whether this substring is present in the input string or not. If present print "YES" otherwise print "NO".

INPUT :

The input consits of a single line of string s

OUTPUT :

The single line output is either "YES" or "NO"

Constraints:

0<=length of the string<=1000

Note: all alphabets are in lower case and the words "to" and "the" should appear together.

SAMPLE INPUT
to order the monk
SAMPLE OUTPUT
NO
Explanation

In this example "to the" does exist but not together. So the answer is "NO"

 

Time Limit: 1.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB

Best Submission

Similar Problems

Contributors

Initializing Code Editor...
Notifications
View All Notifications

?