s=input()
a="keyence"
# if a in s:
#     print("YES")
#     exit()
for i in range(len(a)):
    if a[:i] in s:
        b=s.index(a[:i])
        if a[i:] in s[b:]:
            c=s.index(a[i:])
            #print(s.index(a[i:]),s[s.index(a[i:]):],a[i:])
            if s[c:]==a[i:]:
                print("YES")
                exit()
            else:
                while True:
                    try:
                        d=s[c+1:].index(a[i:])
                        #print(s[c+1:],a[i:],d)
                        if d==0:
                            if s[c+1:]==a[i:]:
                                print("YES")
                                exit()
                            break
                        c+=d
                        #print(c,s[c:],a[i:])
                        if s[c:]==a[i:]:
                            print("YES")
                            exit()
                    except:
                        break
                    
                
print("NO")