Two Chains, One Total

Python FundamentalsHard+10 XP+10

Two Chains, One Total

This code has two separate if / elif chains, one after the other:

What number gets printed? Enter a whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.