#include int main(int argc, char* argv[]) { if( argc != 1 ) { int count[10] = {}; int all = 0; for(;;) { int x = getchar(); if( x < 0 ) break; if( x == '=' ) { getchar(); continue; } if( '0' <= x and x <= '9' ) { count[x - '0'] += 1; all += 1; if( all == 200000 ) break; } } putchar('{'); for(int i = 0; i < 10; ++i) { printf("%d, ", count[i]); } putchar('}'); putchar('\n'); return 0; } int xs[10] = {20104, 20063, 19892, 20011, 19874, 20199, 19898, 20163, 19956, 19841, }; int ys[10] = {}; for(;;) { int x = getchar(); if( x < 0 ) break; if( '0' <= x and x <= '9' ) { ys[x - '0'] += 1; } } for(int i = 0; i < 10; ++i) { if( xs[i] < ys[i] ) { printf("%d ", i); } } for(int i = 0; i < 10; ++i) { if( xs[i] > ys[i] ) { printf("%d\n", i); } } return 0; }