A Bound For Certain S Extremal Lattices And Codes