What deal did Democrats and Republicans make regarding the presidential election of 1876?

What deal did Democrats and Republicans make regarding the presidential election of 1876?
1.The president would be a Democrat, and the vice president would be a Republican.
2.The president would be a Republican, and the vice president would be a Democrat.
3.The president would be a Democrat, and the cabinet would contain Republicans.
4.The president would be a Republican, and the cabinet would contain Democrats.