I was sent two presents for my birthday. One present weighed 5 kg and 175 g and the other weighed 3 kg and 350 g. What was the difference of the weights of the two presents in grams?