Codes on my car

Would this mean I’d have to change ignition coils and spark plugs or would I also have to do the o2 sensors ?

Would this mean I’d have to change ignition coils and spark plugs or would I also have to do the o2 sensors ?