#include using namespace std; int main() { vector cnt{20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841}; string s; cin >> s; for (auto c : s) { if (!isdigit(c)) continue; cnt[c-'0']--; } for (int i = 0; i < 10; i++) if (cnt[i] == -1) cout << i << ' '; for (int i = 0; i < 10; i++) if (cnt[i] == 1) cout << endl; }