#include #define int ll using namespace std; #define rep(i,n) for(int i=0;i=0;i--) #define rng(i,c,n) for(int i=c;i #define _48SMghu ios::sync_with_stdio(0),cin.tie(0) using ll=long long; using pii=pair; using vi=vector; void print(){cout<<'\n';} template void print(const h&v,const t&...u){cout<>s; set st; rep(i,sz(s)+1){ rep(x,10){ if(!i and !x) continue; string ns=s; ns.insert(ns.begin()+i,(char)(x+'0')); st.insert(stoll(ns)); } } print(sz(st)); } signed main(){ _48SMghu; slv(); }