s=input()
a="keyence"
cnt=0
my=False
my2=False
for b in s:
    if cnt==7:
        if my2:
            print("NO")
            exit()
        print("YES")
        exit()
    if b==a[cnt]:
        cnt+=1
        if my:
            my2=True
    else:
        if my2:
            print("NO")
            exit()
        my=True
        
if cnt==7:
    print("YES")
    exit()
print("NO")