import java.util.Scanner; import java.util.Arrays; public class Exercise001 { public static void main (String[] args){ Scanner sc = new Scanner(System.in); int rowNum = sc.nextInt(); int colNum = sc.nextInt(); boolean result = false; for (int i = 0; i < rowNum; i++) { if (sc.next().indexOf("LOVE") != -1) { result = true; break; } } System.out.println(result ? "YES" : "NO"); } }