how to get a flat stomach without losing weight any where else?

so i been trying to GAIN weight cuz im really skinny and it all goes to my chin and mostly my stomach it gos every where else too..but yea i want a flat stomach how should i exercise without losing fat anywhere else?