find minimum as a first test drive, input generations.