#!/usr/bin/env python


def solve():
    S = input()
    for c in 'keyence':
        idx = S.find(c)
        if idx == -1:
            print('NO')
            return
        S = S[idx:]
    print('YES')


if __name__ == "__main__":
    solve()
