def main():
    S = input()
    if S == 'keyence':
        return ('YES')
    ans = 'keyence'
    j = 0
    cnt = 0
    i = 0
    while i<len(S):
        if S[i] == ans[j]:
            while True:
                j += 1
                i += 1
                if j == 7:
                    return ('YES')
                elif S[i] != ans[j]:
                    cnt += 1
                    if cnt > 1:
                        return('NO')
                    break
        else:
            i += 1

    return('NO')

print(main())
