#include<cstdio> #include<algorithm> #include<string> #include<iostream> using namespace std; int a[100] = {},tp,sum = 0; string s; int main() { scanf("%d",&tp); while(tp != -1) { a[tp] ++; scanf("%d",&tp); } sum = a[1] + a[2] + a[3]; printf("A=%d\nB=%d\nC=%d\nTot=%d\n",a[1],a[2],a[3],sum); sum ++; if(max(a[1],max(a[2],a[3])) > sum / 2) { if(a[1] > max(a[2],a[3]))s = "A-yes"; else if(a[2] > max(a[1],a[3]))s = "B-yes"; else if(a[3] > max(a[2],a[1]))s = "C-yes"; cout << s << endl; } else if(max(a[1],max(a[2],a[3])) <= sum / 2) { printf("all-NO\n"); } return 0; }