A seismometer located 300 km from the epicenter of an earthquake reco

A seismometer located 300 km from the epicenter of an earthquake records a maximum amplitude seismic wave of 1 mm. What is the Richter magnitude of the earthquake?