In Germany, all convicts are allowed to vote while in prison unless the loss of the right to vote is part of the sentence; courts can only apply this sentence for specific "political" crimes (treason, high treason, electoral fraud, intimidation of voters, etc.) and for a duration of two to five years. All convicts sentenced to at least one year in prison automatically lose the right to be elected in public elections for a duration of five years, and lose all positions they held as a result of such an election.