Input (grade 9): is one of the 26 states of Brazil, the second most populous and the second richest, fourth largest by area in the federation.
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).