import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,M = map(int,readline().split()) S = read() answer = 'YES' if S.find(b'LOVE') != -1 else 'NO' print(answer)