Who was the leader of Austria-Hungary during ww1?

Franz Joseph I and his successor Karl I were the emperors of the Austro-Hungarian Empire during WWI.