def m():
    S = input()
    a = 'keyence'
    x = 0
    f = 0
    if S[0] == 'k':
        for i in range(len(S)):
            if x >= 6:
                break
            if S[i] == a[x]:
                x += 1
                continue
        if x >= 6:
            return 'YES'
        else:
            return 'NO'

    else:
        if a in S:
            return 'YES'
        else:
            return 'NO'



print(m())