s=input()
result=False
for i in range(len(s)):
    for j in range(i,len(s)):
        for k in range(i,len(s)):
            if s[i:j]+s[k:]=="keyence":
                result=True
                break
if result:
    print("YES")
else:
    print("NO")