Takes input filename as argument. Ignores extraneous numbers