s=input()
if(s[0:7]=='keyence'):
    print('YES')
elif(s[-7:]=='keyence'):
    print('YES')    
else:
    for i in range(7):
        t=s[0:i+1]+s[-6+i:]
        
        if(s[0:i+1]+s[-6+i:]=='keyence'):   
            print('YES')
            exit()
print('NO')      