In addition, a program of the invention is a program which targets at production line having a plurality of component mounting machines that mount components on a substrate, for controlling line balance by allocating components to be mounted, to each component mounting machine, and the program has an arithmetic processing section of at least one of devices' including the component mounting machine