N=input()
flag = 0
l=ken(N)
if l != 7:
        for i in range(7):
                g=N[0:i]+N[i+l-7:l]
                if g=='keyence':flag=1
        if flag==1:print("YES")
        else :print("NO")
else if N=='keyence':print("YES")
else print("NO")