When a level is gained, the grand total HP rolled (including any CON bonus) is divided by the number of classes.