S = input()
k = "keyence"
ans = "NO"
if S.find(k) > -1:
    ans = "YES"
else:
    for i in range(6):
        a,b = S.find(k[:i+1]),S.find(k[i+1:])
        if a > -1 and b > -1 and a + len(k[:i+1]) < b:
            ans = "YES"
            break
print(ans)