s = input()

if s == "keyence":
    print("YES")
    exit()

for i in range(len(s)+1):
    for j in range(i,len(s)+1):
        if s[:i] + s[i + j:] == "keyence":
            print("YES")
            exit()

print("NO")