Deductions & credits

Thanks for your answer!  Vanguard does not invest in any countries like Iran or Cuba that we are not allowed to claim the foreign income or taxes paid - correct?   Said another way, we can just take the  sum of unqualified dividends, qualified dividends and capital gains as you suggest and not have to subtract any unqualified foreign income?