Uruguay has a high-income economy, and is ranked first in Latin America in democracy, peace, low perception of corruption, and e-government. It is first in South America when it comes to press freedom, size of the middle class, and prosperity. On a per-capita basis, Uruguay contributes more troops to United Nations peacekeeping missions than any other country. It is the lowest ranking South American nation in the Global Terrorism Index, and ranks second in the continent on economic freedom, income equality, per-capita income, and inflows of FDI. Uruguay is the third-best country on the continent in terms of Human Development Index, GDP growth, innovation, and infrastructure. Uruguay is regarded as one of the most socially progressive countries in Latin America. It ranks high on global measures of personal rights, tolerance, and inclusion issues, including its acceptance of the LGBT community. The country has legalized cannabis, while same-sex marriage and abortion are also legal. Uruguay is a founding member of the United Nations, OAS and Mercosur.