#include #include #include using namespace std; int ml; string tp, s; int main() { // freopen("decl.in", "r", stdin); while(cin>>tp) { if(tp=="unsigned") cin>>tp; if(tp=="char") ml=1; else if(tp=="short") ml=2; else if(tp=="int") ml=4; cin>>s; int tot=0, cr=0, ccr=1, st=0; for(int i=0; i='0' && s[i]<='9') { st=1; cr=cr*10+s[i]-'0'; } else if(s[i]==',') { tot+=ccr; // cout<