#include<stdio.h> int a,b,c,z=1; int main(){ int t; scanf("%d",&t); while(t!=-1){ if(t==1) a++; else if(t==3) c++; else if(t==2) b++; z++; scanf("%d",&t); } printf("A=%d\nB=%d\nC=%d\nTot=%d\n",a,b,c,a+b+c); if(a>b&&...