string num;
getline(cin,num);
string temp;
temp += num[i];
int sum = atoi(temp.c_str());
for(int i = 1; i<num.length(); ++i) {
string temptemp;
temptemp = num[i];
sum*=atoi(temptemp.c_str());
}
cout << endl << sum;
string num;
getline(cin,num);
string temp;
temp += num[i];
int sum = atoi(temp.c_str());
for(int i = 1; i<num.length(); ++i) {
string temptemp;
temptemp = num[i];
sum*=atoi(temptemp.c_str());
}
cout << endl << sum;