s=input()
t='keyence'
ans=[]
for i in range(0,8):
    try:
        if s.index(t[0:i])+s[i:].index(t[i:7])>=0:
            ans.append(1)
        else:
            ans.append(0)
    except:
        ans.append(0)
print('YES' if any(ans) else 'NO')