Definition: Given scientific fact as input, generate the question from this fact such that it can be answered from the input.
Input: Ionic compound atoms of various elements gain or lose electrons to produce ions.
Output:
Ionic compound atoms of various elements gain or lose electrons to?