#include using namespace std; int hash[10]; int main() { int t; scanf("%d",&t); while(t--) { char s[100000]; scanf("%s",s); int i,count=0; for(i=0;i