Btw in around a billion years the sun will be hot enough that Mars will be hot as hot if not hotter than our current earth, and with the CO2 and water melting in caps it might terraform the planet (atmospheric pressure will increase dramatical and liquid water will form) and and life on earth will not be possible anymore, heck even Jupiter moons will start to become more earth like (the ones with atmosphere like titan).
Also, I hardly doubt that humanity is still around in a billion years. I see no reason to wait that long anyway.
Of course you'll need to extract oxygen from other chemicals that are abundant.
And I agree humanity might disappear by the end of the century, if it keeps going with it stupidity and doesn't start thinking globally and for the best of the whole human race rather than just individual (being it a person a group or a country) greed. And one of the most important steps it's starting to seriously work on plans to move and spread to Mars (easiest location beside earth to live on) to have a backup plan when at least something serious happens on earth, and start easing up on earth in general, but for now it's all about greed and killing each other to each that ...