Acid rain is primarily caused by the presence of oxides of nitrogen (NOx) and oxides of sulfur (SOx) in the atmosphere. When these gases combine with water vapor, they form acidic compounds that lead to acid rain. Oxides of hydrogen are not a cause of acid rain. Therefore, the correct answer is 2 and 3.