In a class there are 50 students. Their average weight is 45 kg. When a student leaves the class, the average is reduced by 100 g. Find the weight of the student who left the class.