A set includes weights weighing \(1\) gram, \(2\) grams, \(4\) grams, ... (all powers of the number \(2\)), and in the set some of the weights might be the same. Weights were placed on two cups of the scales so that the scales are in balance. It is known that on the left cup, all weights are different. Prove that there are as many weights on the right cup as there are on the left.