וַיֹּאמְר֗וּ מָ֣ה הָאָשָׁם֮ אֲשֶׁ֣ר נָשִׁ֣יב לוֹ֒ וַיֹּאמְר֗וּ מִסְפַּר֙ סַרְנֵ֣י פְלִשְׁתִּ֔ים חֲמִשָּׁה֙ עפלי [טְחֹרֵ֣י] זָהָ֔ב וַחֲמִשָּׁ֖ה עַכְבְּרֵ֣י זָהָ֑ב כִּֽי־מַגֵּפָ֥ה אַחַ֛ת לְכֻלָּ֖ם וּלְסַרְנֵיכֶֽם׃
Domandarono: «Quale offerta di riparazione dovremo restituirGli?». Ed essi risposero: «Secondo il numero dei prìncipi dei Filistei: cinque emorroidi d'oro e cinque topi d'oro, perché un'unica piaga ha colpito tutti loro e i vostri prìncipi.
Rashi
טירתם means the place of their scribes (notarii) — a term which is denoting the dwelling-place of their priests, those well acquainted with their laws (cf. Siphre). Another explanation is that it means the place of their princes, just as “the lords of the Philistines” (I Samuel 6:4) is translated in the Targum by “the טורני of the Philistines” (Sifrei Bamidbar 157:5).