Immigration Status Changed From F1 to PR mid year

I was on an F-1 visa for the first 5 months of 2019. I left on 29th May for Pakistan, had an immigrant visa interview there. I came back as an immigrant on 18th August 2019 with my wife (she also came as an immigrant), so I was a permanent resident for the last 4 months and some days.
 
I know I need to file as a resident for 2019 but, will I get any tax benefit for being on F1 for the first 5 months and for not being in the United States for the next 3 months while I was not a PR? If yes, where should I put this information in Turbo Tax?