#include <bits/stdc++.h> using namespace std; int main() { string str; getline(cin,str); int num[10]={0}; int temp = 0; int flag = 1; char b[4]={'0','A','B','C'}; int sum = 0; for(int i = 0; i < str.size()-1; i++){ if(str[i]!='-1') num[str...