In an air standard Otto cycle, $1000 \mathrm{~kJ} \mathrm{~kg}^{-1}$ net work is done. The maximum temperature in the cycle is $3200 \mathrm{~K}$ and the temperature at the end of the compression stroke is $800 \mathrm{~K}$. Calculate the compression ratio of the engine.