You can do before Wire.begin();

pinMode(16, INPUT_PULLUP);
pinMode(17, INPUT_PULLUP);
pinMode(18, INPUT_PULLUP);
pinMode(19, INPUT_PULLUP);
pinMode(24, INPUT_PULLUP);
pinMode(25,...