9
lfpgbnlzyn
c
s
w
r
m
q
y
yinfblfcdhidphyfvgkxyuwomahiibbhnigdslsguhjkplibnhhrshtekwgefxeugyyyyy
 6
u
p
m
z
v
vv
 4
qe
nd
iqryhukieskfvaeettersinksrmazelxtgvartuz
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
 6
nf
ysvchtjkfgsbyfzxjaykey
advqnf
wl
pi
ppppfvvmaebvhkoagppppp
 3
j
k
kkailgwqnxtdsttkkkkkkk
 4
o
yhnx
e
ennn
 10
j
dyfu
udzj
wwow
xtnw
f
c
q
o
gggg
 6
w
g
c
j
y
f
 4
r
o
w
wwwwwwwwww
 2
zxwp
ppppctfisvflhtjggg
 5
m
g
u
t
tttt
 2
n
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
 3
lt
en
eeeeeeeeee
 4
vr
hp
l
llbn

7 5 541 10 10 4 4 1 21 5 9 93 21 3
#include <bits/stdc++.h>
using namespace std;
void product(string a, string b) {
  vector<int> result(a.size() + b.size(), 0);
  for (int i = a.size() - 1; i >= 0; i--) {
    for (int j = b.size() - 1; j >= 0; j--) {
      result[i + j + 1] += (b[j] - '0') * (a[i] - '0');
    }
  }
  for (int i = a.size() + b.size(); i >= 0; i--) {
    if (result[i] >= 10) {
      result[i - 1] += result[i] / 10;
      result[i] %= 10;
    }
  }
  cout << a << " * " << b << " = ";
  for (int i = 0; i < a.size() + b.size(); i++) {
    cout << result[i];
  }
  cout << endl;
}
int main(void) {
  string str1, str2;
  str1 = "99999999999999999999";
  str2 = "9985995948565498566";
  product(str1, str2);
  return 0;
}
