Input (grade 10): It borders on Bahia and Goiás (north), Mato Grosso do Sul (far west), the states of São Paulo and Rio de Janeiro (south) and the state of Espírito Santo (east).
Output (grade 11): Minas Gerais shares borders with Bahia and Goiás (north), Mato Grosso do Sul (far west), the states of São Paulo and Rio de Janeiro (south) and the state of Espírito Santo (east).