After you file

Use 0 (zero) for the 2017 AGI.

But the IRS might notify you to file 2017 before they will process 2018.