Input (grade 7): Neighboring states are (from west clockwise) Rondônia, Amazonas, Pará, Tocantins, Goiás and Mato Grosso do Sul.
Output (grade 7): Mato Grosso shares borders with the states of Rondônia, Amazonas, Pará, Tocantins, Goiás and Mato Grosso do Sul.