//源代码
#include<bits/stdc++.h>
using namespace std;
//定义变量
string s;
int a[250],c[500];
int b,p;
//主函数
int main(){
//输入
cin >> s >> b;
//各位的数
for(int i = 0; i < s.size(); i++)
a[i] = s[s.size() - (i + 1)] - '0';
//逐位乘
for(int i = 0; i < s.size(); i++)
a[i] = a[i] * b;
//进位
for(int i = 0; i < s.size() + 4; i++){
if (a[i] >= 10){
a[i + 1] = a[i + 1] + a[i] / 10;
a[i] = a[i] % 10;
}
}
//长度计算
for(int i = s.size() + 5; i >= 0; i--){
if (a[i] != 0){
p = i;
break;
}
}
//输出
for(int i = p; i >= 0; i--)
cout << a[i];
return 0;
}
/**************************************************************
Problem: 1286
User: hongjiaming
Language: C++
Result: Accepted
Time:28 ms
Memory:2080 kb
****************************************************************/