系数输入逻辑

coefficient input logic