Where is the oxygen sensor located on your 1997 subaru legacy?

Both o2 sensors are located on catalytic converter. Sensor closest to front of car is upstream sensor. Sensor closest to rr of car is downstream sensor.