Measurement of the energy spectrum of cosmic rays with the 26 station configuration of the IceTop detector