Before reunification , both the Federal Republic of Germany ( FRG ) and the German Democratic Republic ( DDR ) used four-digit codes . Before reunification , both the Federal Republic of Germany ( FRG ) and the German Democratic Republic ( GDR ) used four-digit codes .