Sulphur reacts with conc.H2SO4 to give a gas A and, it reacts with conc. HNO3 to give a gas B. A and B respectivley are: