According to the Act Number 18 of 1965, cities in Indonesia were classified into three: "kotaraya" (great city, first-level subdivision), "kotamadya" (medium city, second-level subdivision), and "kotapraja" (small city or town, third-level subdivision).