Meam heap Program