Please follow https://www.irs.gov/pub/irs-pdf/p5307.pdf.