Automatic shaft inserting machine