#include <iostream> #include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; string str = to_string(n); unordered_set<char> set; reverse(str.begin(),str.end()); string res; for (char c:str){ if (set.count(c) != 1) ...