Impulsive and long duration high-energy gamma-ray emission from the very bright 2012 march 7 solar flares