the soviets have the option of buying the remaining 1 million tons as wheat , corn or soybeans , with every ton of beans counting as two tons of grain _ up to a maximum of 1 million tons of grain equivalent .