The King

581. Not to curse a ruler, that is, the King or the head of the College in the land of Israel  Negative
Exodus 22:27
582. To appoint a king  Affirmative
Deuteronomy 17:15
583. Not to appoint as ruler over Israel, one who comes from non-Israelites  Negative
Deuteronomy 17:15
584. That the King shall not acquire an excessive number of horses  Negative
Deuteronomy 17:16
585. That the King shall not take an excessive number of wives  Negative
Deuteronomy 17:17
586. That he shall not accumulate an excessive quantity of gold and silve  Negative
Deuteronomy 17:17
587. That the King shall write a scroll of the Torah for himself, in addition to the one that every person should write, so that he writes two scrolls  Affirmative
Deuteronomy 17:18