> To pass the time, the guards on this space station like to gamble their bananas. Whenever two guards gamble, the one with fewer bananas always wins, and they receive that many bananas from the loser. The guards repeat this until they have an equal number of bananas. Sometimes the guards _never_ reach equilibrium; this is fine with them.
Given: a text file containing 100 numbers ranging from 1 to 1,000,000,000, representing the number of bananas each guard possesses. You wish to pair up the guards so that as many of them as possible enter an infinite gambling loop. How many guards can you…