Uniqueness and nonuniqueness in an inverse problem for the parabolic equation