In the previous scenario, John initially bought 59 jackets. However, let's reconsider that scenario with a slight modification. 

This time, after buying the initial 59 jackets, John went to another store and bought 83 more jackets. Then, as he was leaving, he noticed a stand with discount jackets and purchased 58 more of them there. 

How many jackets did John buy in total under these new conditions?