Szilard initially attended Palatine Joseph Technical University in Budapest, but his engineering studies were interrupted by service in the Austro-Hungarian Army during World War I. He left Hungary for Germany in 1919, enrolling at Technische Hochschule (Institute of Technology) in Berlin-Charlottenburg, but became bored with engineering and transferred to Friedrich Wilhelm University, where he studied physics. He wrote his doctoral thesis on Maxwell's demon, a long-standing puzzle in the philosophy of thermal and statistical physics. Szilard was the first to recognize the connection between thermodynamics and information theory.