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