#include using namespace std; void speed() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); } const int maxk=1e5+1; string s,ans; int k,cnt[maxk]; void read() { cin>>s; cin>>k; } void check() { for(int i=0; i<26; i++) { if(cnt[i]%k!=0) { cout<<-1<