def main():
    S = input()
    ans = 'keyence'
    cnt = 0
    j = 0
    if S[0] != 'k':
        for i in range(len(S)-6):
            if S[i] == ans[j]:
                while True:
                    j += 1
                    i += 1
                    if j == 7:
                        return('YES')
                    elif S[i] != ans[j]:
                        break
        return ('NO')
    else:
        i = 0
        while True:
            i += 1
            j += 1
            if j == 7:
                return('YES')
            elif S[i] != ans[j]:
                break
        for k in range(i,len(S)-j,1):
            tmp = j
            if S[k] == ans[j]:
                while True:
                    tmp += 1
                    k += 1
                    if tmp == 7:
                        return('YES')
                    elif S[k] != ans[tmp]:
                        break
        return('No')

print(main())
