How farmers buy crop inputs