Input (grade 13): Under the laws of the Constitution of Perak, Perak is a constitutional monarchy, with a ceremonial hereditary ruler.
Output (grade 5): Perak is a state in Malaysia that is located on the western part of Peninsular Malaysia. The capital city of Perak is Ipoh.