Original: Gex is a commune in the Ain department in eastern France .
Simplified: Gex is a commune .