input: [Judicial Institution] Regional Electoral Courts ( Tribunal Regional Eleitoral – TRE), Electoral Boards ( Junta Eleitoral ) and electoral judges [Composition] The TREs are established in the capital of every state and in the Federal District. The Court is composed by two judges from a state court and two first-instance state judges selected by the state court – these judges are elected among their peers; one judge from a TRF when there is a TRF in the capital of the state, or a federal judge chosen by the TRF that has jurisdiction on the particular state; and two judges are appointed by the President who shall choose from a list submitted by the state court. The judges must serve for two years at least and are not allowed to exercise this function for more than two consecutive biennia. [61] [Jurisdiction] 
output: Article 121, CF/88: The competences of electoral justice are settled at LO 4737/65 ( Código Eleitoral – CE).