The regime applies to Andorran companies whose exclusive purpose is to manage interests in nonresident companies . Under the regime , dividends distributed by nonresident entities are exempt from tax, as are capital gains derived from the sale of the corresponding participation.