Inlet and exhaust manifold