#include<bits/stdc++.h>
using namespace std;
long long k,x;
int GetLong(long long x){
long long tmp=x,ans=0;
while(tmp!=0){
tmp/=10;
ans++;
}
return ans;
}
int main()
{
cin>>k>>x;
if (k<=18){
cout<<(long long)(pow(10,k)+x);
return 0;
}
k-=GetLong(x);
cout<<1;
for (int i=1;i<=k;i++){
cout<<0;
}
if (x!=0)
cout<<x<<endl;
}