Original: San Marino is not a member of the European Union but the euro is used in San Marino.
Simplified: San Marino is not a member of the European Union, but the euro is used in San Marino.