Reform (Reform)
The Ruog language is famously complex, with its lengthy words and frequent repetition of letters. To address this, the Academy of Ruog Sciences has proposed a language reform with the following transformation rules for each word:
1) The word must contain the same letters as before;
2) Each letter should appear only once in the new word;
3) The letters must be arranged in alphabetical order;
4) If the original word began with a capital letter, the first letter of the new word should also be capitalized.
Punctuation marks and spaces should remain unchanged. This reform poses a challenge for preserving the literary heritage, which must be rewritten according to these new rules. An international competition has been announced to develop a program that can automate this process, and Andriy has decided to participate. Are you interested in competing too? Texts are divided into lines, each containing no more than 1000 characters, and consist of uppercase and lowercase Latin letters, punctuation marks, and spaces. A capital letter can only appear at the beginning of a word.
Input
The program reads a line from the keyboard in the old version of the language.
Output
The program outputs the same line in the new version.