#include using namespace std; using ll =long long; #define all(v) v.begin(),v.end() #define rep(i,a,b) for(int i=a;i=b;i--) ll INF=2e18; int main() { ios::sync_with_stdio(false); cin.tie(0); string N;cin>>N; ll n=N.size(); string t="0123456789"; set S; for(ll i=0;i<=n;i++) { string f=""; for(ll j=0;j