import std.experimental.all; T read(T)() { return readln.chomp.to!T; } T[] reads(T)() { return readln.split.to!(T[]); } alias readint = read!int; alias readints = reads!int; void main() { auto nm = readints; int n = nm[0]; bool found = false; for (int i = 0; i < n; i++) { auto s = readln.chomp; if (s.canFind("LOVE")) { found = true; } } writeln(found ? "YES" : "NO"); }