import sys
s = list(input())

for i, string in enumerate(s):
    if s[:7] == list("keyence"):
        print("YES")
        sys.exit()
        
    if s[i] != "keyence"[i]:
        for j in range(1, len(s)-i-1):
            if s[i+j] == "keyence"[i]:
                if s[:i]+s[i+j:] == list("keyence"):
                    print("YES")
                    sys.exit()
        break

print("NO")