def main():
    S = input()
    if S[0] != 'k':
        if S[-7:] == 'keyence':
            print('YES')
            return
        else:
            print('NO')
            return
    if S[1] != 'e':
        if S[-6:] == 'eyence':
            print('YES')
            return
        else:
            print('NO')
            return
    if S[2] != 'y':
        if S[-5:] == 'yence':
            print('YES')
            return
        else:
            print('NO')
            return
    if S[3] != 'e':
        if S[-4:] == 'ence':
            print('YES')
            return
        else:
            print('NO')
            return
    if S[4] != 'n':
        if S[-7:] == 'nce':
            print('YES')
            return
        else:
            print('NO')
            return
    if S[5] != 'c':
        if S[-7:] == 'ce':
            print('YES')
            return
        else:
            print('NO')
            return
    if S[6] != 'e':
        if S[-7:] == 'e':
            print('YES')
            return
        else:
            print('NO')
            return
    print('YES')


if __name__ == "__main__":
    main()