How should I convert the FS EAM format(.eam.fs) into the DYNAMO setfl format(.eam.alloy)?

Hi,Dear all:
For FS EAM files,the format of the Nelement sections for each element I is :
line 1 = atomic number, mass, lattice constant, lattice type (e.g. FCC)
embedding function F(rho) (Nrho values)
density function rho® for element I at element 1 (Nr values)
density function rho® for element I at element 2

density function rho® for element I at element Nelement
However,for DYNAMO setfl format,that is:
line 1 = atomic number, mass, lattice constant, lattice type (e.g. FCC)
embedding function F(rho) (Nrho values)
density function rho® (Nr values)
To be sure, the first format can describe the electron density more accurately while the element type is more than one. I have got questions:
what the density function for DYNAMO setfl format if the element types are above one?
Does that present element N at element N in the Nelement section?
In brief, how I convert the first format into the second format if there is a necessary for me?
Best regards
Tsung Fong