A-dependence of the charm production cross section in interactions