頭がいい

Etymology
Shift from earlier.

Literally “having a good head”.

Adjective

 * 1)  bright, intelligent, sharp