#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>s; int cnt[10]={20104,20063,19892,20011,19874,20199,19898,20163,19956,19841}; for(char c:s) if(isdigit(c)) cnt[c-'0']--; for(int i=0;i<10;i++) if(cnt[i]<0) cout<0) cout<