The upstream oxygen sensor threads into the outlet flange of the exhaust manifold.
The downstream heated oxygen sensor threads into the system depending on emission package.