Recovering two constants in a parabolic linear equation