 Later, Gömbös became the first foreign head of government to visit German chancellor Adolf Hitler.For a time, Hungary profited handsomely, as Gömbös signed a trade agreement with Germany that drew Hungary's economy out of depression but made Hungary dependent on the German economy for both raw materials and markets.In 1928, Germany had accounted for 19.5 percent of Hungary's imports and 11.7 percent of its exports; by 1939 the figures were 52.5 percent and 52.2 percent, respectively.