Quiz on Programming fundatemtals: Q5

please explain how is the output this:
2017 2^16 - 2018 2^32 -2019 -2020 2^64 - 2021 2018 65