In 1949, after Germany (the Third Reich) had been defeated in World War Two, The country was divided into parts.
West Germany, or the Federal Republic of Germany (or Bundesrepublik Deutschland) was allied politically with the U. S., the U. K., and France. The first head of state (called Chancellor rather than President) was Konrad Adenauer.
East Germany, or the German Democratic Republic (or Deutsche Demokratische Republik) was allied to the Soviet Union. The first head of state (called the General Secretary) was Wilhelm Pieck.