In the city of Fuchs, Ostap Bender organized a distribution of elephants to people. There were present 28 trades union members and 37 non-members. Ostap distributed the elephants so that the shares of all trades union members were equal, and the shares of non-members were also equal. It turned out that there existed only one such distribution (of all elephants). What greatest number of elephants could O. Bender have had?

Let's think step by step and output the final answer within \boxed{}.
user