key = "keyence"
s = str(input())
if(len(s) >= 7):
    e = 0
    for i in range(len(s)):
        if(s[i] == key[e]):
            e += 1
            if(e == 6):
                print("Yes")
                exit()
else:
    print("No")
print("No")