import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    s=input()
    ke="keyence"
    cunt=0
    if len(s)>8:
        print("NO")
        sys.exit()
    for i in range(len(s)):
        if s[i]==ke[cunt]:
            cunt+=1
            if cunt==7:
                print("YES")
                break
    else:print("NO")

if __name__=='__main__':
    main()