#include <iostream>
#include <string>
using namespace std;
int main() {
string a, b;
while (cin >> a >> b) { // 注意 while 处理多个 case
long long res = 0;
for (int i = 0; i < a.size(); i++) {
int a1 = a[i] - '0';
for (int j = 0; j < b.size(); j++) {
int b1 = b[j] - '0';
int k = a1 * b1;
res = res + k;
}
}
printf("%lld\n", res);
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号