Inherited IRA was moved to a trust and then to the beneficiaries. 1099-R shows Estate as recipient of IRA. How do I report the distribution to the beneficiaries?

Distribution of IRA assets to Trust and then distributions to beneficiaries both occurred in 2017.  Total distribution to beneficiaries in 2017 included bulk of Trust assets (inheritance) and all of IRA assets.