s = input()

str = "keyence"
a = [(str[0:i], str[i:]) for i in range(1, 7)]

flg = 0
for i, j in a:
    if s == "keyence":
        flg = 1
        break
    
    s = s.replace(i, "%")
    s = s.replace(j, "&")
    
    if "%" not in s:
        pass
    elif "&" not in s:
        pass
    elif s.index("%") < s.index("&"):
        pass
    else:
        flg = 1
        break
        
if flg == 1:
    print("YES")
else:
    print("NO")