Proton intensity spectra during the solar energetic particle events of May 17, 2012 and January 6, 2014