Brain Shapes

Place numbers into slots according to the given rules.