def main(pro):
    ans = 'keyence'
    i = 0
    flag = 0
    for x in pro:
        if i < 7:
            if x == ans[i]:
                i += 1
                if flag == 1:
                    flag = -1
        elif flag == -1:
            print('NO')
            return
        else:
            flag = 1
    if i < 6:
        print('NO')
    else:
        print('YES')

main(input())