#include <climits>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
string s;
cin >> s;
vector<int> count(26);
int minVal = INT_MAX;
for(char c: s){
count[c - 'a']++;
}
string ans;
for(int i = 0; i < 26; i++){
if(count[i] == 0) continue;
if(count[i] < minVal){
minVal = count[i];
}
}
for(char c: s){
if(count[c - 'a'] == minVal) continue;
ans += c;
}
cout << ans << endl;
}
// 64 位输出请用 printf("%lld")



京公网安备 11010502036488号