Indonesia the world, extending from east to west and from north to south. According to the country's Coordinating Ministry for Maritime Affairs, Indonesia has 17,504 islands (16,056 of which are registered at the UN), scattered over both sides of the equator, and with about 6,000 of them are inhabited. The largest are Java, Sumatra, Borneo (shared with Brunei and Malaysia), Sulawesi, and New Guinea (shared with Papua New Guinea). Indonesia shares land borders with Malaysia on Borneo, Papua New Guinea on the island of New Guinea, and East Timor on the island of Timor, and maritime borders with Singapore, Malaysia, Vietnam,
Malaysia area of . It has land borders with Thailand in West Malaysia, and Indonesia and Brunei in East Malaysia. It is linked to Singapore by a narrow causeway and a bridge. The country also has maritime boundaries with Vietnam and the Philippines. The land borders are defined in large part by geological features such as the Perlis River, the Golok River and the Pagalayan Canal, whilst some of the maritime boundaries are the subject of ongoing contention. Brunei forms what is almost an enclave in Malaysia, with the state of Sarawak dividing it into two parts. Malaysia is the only