V. Ferdinánd, I. Ferenc József, IV. Károly