The Engishiki' (an ancient book for codes and procedures on national rites and prayers) indicates that Japanese temples were classified into 2 three-tier groups in ancient times.
古代、日本の「延喜式」には、2種3階級に分かれていた。