Sulfur dioxide and nitrogen oxides react with water to produce what?

They will react with water to produce sulfuric acid and nitric acid respectively.