#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main() {
    char n[20];
    while(scanf("%s", n) != EOF){
        int len = strlen(n);
        int minfrequency = len;
        int frequency[26] = {0};
        for (int i = 0; i < len; i++){
            frequency[n[i] - 'a']++;
            //printf("frequency of %c is %d now\n",n[i], frequency[n[i] - 'a']);
        }
        for (int i = 0; i < 26; i++) {
            if((frequency[i] > 0) && (minfrequency > frequency[i])){
                minfrequency = frequency[i];
                //printf("update minfreq to %d\n", minfrequency);
            }
        }
        int index = 0;
        char *newn = (char *)malloc((len + 1) * sizeof(char));
        for (int i = 0; i < len; i++) {
            if(!(frequency[n[i] - 'a'] == minfrequency)) {
                newn[index++] = n[i];
            }
        }
        printf("%s\n", newn);
        free(newn);
    }
    return 0;
}