s = input()
search="keyence"
idx=0
flg = False
ans="NO"
n = len(s)
if s[0:7] == search:
    print("YES")
elif (s[-7:] == search):
    print("YES")
else:
    for i in range(7):
        x=s.find(search[0:i+1])
        if x==0:
            if (s[i:].find(search[i+1:])>=0):
                ans = "YES"
                break
        else:
            continue
    print(ans)