def main(): print('YES' if 'LOVE' in open(0).read() else 'NO') if __name__ == '__main__': main()