#include <bits/stdc++.h> using namespace std; int main() { int n , sum = 0 , len = 0; int a[1000]; while(cin >> n , n != (-1) ) { len ++; if(n >= 1 && n <= 3) sum += 1; a[n] ++; } cout << "A=" << a[1] << endl << "B=" << a[2] << endl &l...