LOVE

0

0 votes
Easy
Problem

RECursion is going to organize a treasure hunt game and a fun filled on-site event for students of NIT Durgapur in March 2018. But, as all the RECursion moderators are busy celebrating Valentine's Week, RECursion president has approached your company HireDive to help him make questions and clues for the two mega events due next month. Everyone at your company is excited to work on this project. So you ask your employees to make small teams. As you have large number of employees, the number of such teams formed are much more than required for the project at hand.

As Valentine's fever takes on you, you allow only those teams to work on the project which has the letters of the word "love" in their team name.

Given a team's name (one word and all characters in lowercase), determine if the group will be allowed to work for RECursion's March on-site event and treasure hunt game.

Input:

First line of the input contains an integer T denoting the number of teams. Each of the next T lines consists one word S denoting the team's name.

Output:

For each team name S, output "YES" if the team will be allowed to work, else print "NO" without quotes.

Constraints:

1<=T<=100
1<=|S|<=100000

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?