#include <iostream> using namespace std; int main() { int n,f; int fo[10]={0,0,0,0,0,0,0,0,0,0}; cin>>n; while(n) { f=n%10; n=n/10; if(fo[f]==0) { cout<<f; } fo[f]=1; } }