All legislative power relating to mainland Tanzania and union matters is vested in the National Assembly, which is unicameral and has a maximum of 357 members. These include members elected to represent constituencies, the attorney general, five members elected by the Zanzibar house of representatives from among its own members, the special women's seats that constitute at least 30% of the seats that any party has in the assembly, the speaker of the assembly (if not otherwise a member of the assembly), and the persons (not more than ten) appointed by the president. The Tanzania Electoral Commission demarcates the mainland into constituencies in the number determined by the commission with the consent of the president.