Synergy of HLA class I and II shapes the timing of antitumor immune response