China’s government can deal pragmatically with the new administration, and the Communist Party can strengthen ties with the Brazilian left.