Connecting two rings underlying the inclusion-exclusion principle