Did I complete the first 4 years of postsecondary education before 2016 considering my status?

I was a medical student in 2016, and I got my Ph.D in 2016. Four years earlier , I got my bachelor degree in 2012. I was an international student the whole time I have been in the U.S. However, I am considered as a resident alien for tax purposes. Considering my status before and after 2016, I am not sure what I should answer to line 25 of the IRS form 8863 Education Credits (American Opportunity and Lifetime Learning Credits)

25  Did the student complete the first 4 years of postsecondary education before 2016? 

If I answer Yes, I am qualified for Lifetime Learning Credit. Otherwise I am qualified for American Opportunity Credit.