a[10]={20104,20063,19892,20011,19874,20199,19898,20163,19956,19841}, j;main(i){ for(;read(0,&i,1);)i>47&&a[i-48]--; for(;i=a[j]-1;j++); for(;~a[i];i++); j=!printf("%d %d",i,j); }