#include<bits/stdc++.h> using namespace std; int main() { string str; while(cin>>str) { map<char,int> m; for(auto x:str) { m[x]++;//用map统计字符个数 } vector<char> vc; int tmp=m.begin()->second; for(auto it=m.begin();it!=m.end();it++) { if(tmp>it->second) { tmp=it->second;//最小的个数是tmp个 } } for(auto x:str) { if(m[x]>tmp)//将str中出现次数大于tmp个的字符都输出 { cout<<x; } } cout<<endl; } }