if 'Yardi' in raw_input(): print 'YES' else: print 'NO'