Online Adaptation to Label Distribution Shift