print(''.join(dict.fromkeys(input()[::-1])))