Input (grade 10): To the west is a short border with the state of Acre, to the north is the state of Amazonas, in the east is Mato Grosso, and in the south is Bolivia.
Output (grade 8): To the west is the state of Acre, to the north is the state of Amazonas, in the east is Mato Grosso, and in the south is Bolivia.