// editor5
#include<stdio.h>
#include<ctype.h>
int main(){
    int i;
    char s[105], used[256] = {0};
    fgets(s, 105, stdin);
    for(i =0; s[i];i++)
    if(!(isalnum(s[i]) || s[i] ==' '))return printf("Invalid input"), 0;
    if(int i=0;s[i]; i++)
    if(!used[(unsigned char) s[i]]++) putchar(s[i]);
    return 0;
}