Input (grade 10): Neighboring states are (from north clockwise) Tocantins, Bahia, Minas Gerais, the Federal District, Mato Grosso do Sul and Mato Grosso.
Output (grade 8): It shares borders with Tocantins, Bahia, Minas Gerais, the Federal District, Mato Grosso do Sul and Mato Grosso.