Input (grade 6): Neighboring states are (from east clockwise) PiauÃ, Tocantins and ParÃ.
Output (grade 4): MaranhÃ # o shares borders with PiauÃ, Tocantins and ParÃ.