def main():
    S = input()

    str_key = 'keyence'

    tmp = 0
    for s in S:
        if s == str_key[tmp]:
            tmp += 1
    if tmp == 7:
        print('YES')
    else:
        print('NO')


if __name__ == "__main__":
    main()
