After you file

given the complexity and the dollars at stake, might be worth calling a local tax specialist and have him/ her figure it out. 

 

you will have more 'peace of mind' than getting advise from an anonymous community board