A survey of 500 farmers showed that of the farmers, 126 grew only wheat, 108 grew only corn, 91 grew only oats, 197 grew wheat, 59 grew wheat and corn, 50 grew wheat and oats, and 180 grew corn. Determine the number of farmers who a) grew at least one of the three, b) grew all three, c) did not grow any of the three, and d) grew exactly two of the three.