the average weight of 29 students is 28 kg . by the admission of a new student , the average weight is reduced to 27.1 kg . the weight of the new student is
n0 = 29.0
n1 = 28.0
n2 = 27.1
t0 = n0 + 1.0
t1 = n0 * n1
t2 = n2 * t0
answer = t2 - t1
print(answer)