script for finding mass of any smiles