The Mass-Metallicity Relation at z>3