we can write the situation mathematically like follows:
where n is the smallest integer and n+2 is the greatest, let's find first the smallest to find the greatest then.
then
then the smallest integer will be n=-47 and the greatest will be n+2=-47+2=-45 then the final answe is -45.