Two jobs last year. Maxed CPP and EI twice.

How does CRA handle? Do they just take this amount off of my tax liability and or give me a refund of this amount? Or do they somehow calculate it and charge me less this year?