From magnitudes and redshifts of supernovae, their light