Who was Austria-Hungary's leader in World War 1?

First Kaiser Franz Josef 1, then Karl 1 who was also the last, because then we diminished the monarchy