#include #include using namespace std; int cnt[10]={ 20105, 20063, 19891, 20011, 19874, 20199, 19898, 20163, 19955, 19841, }; int main() { string s; cin>>s; for(char c: s) { if ('0'<=c and c<='9') { cnt[c-'0']--; } } for(int i=0;i<10;++i) if (cnt[i]<0) cout<0) cout<