#!/usr/bin/python string = raw_input() myString = 'Yardi'; def if_exist(): if myString in string: print('YES') else: print('NO') if_exist()