#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int nb[1100000],p,x,ans[1100000];
void ck(int* nb)
{
for(int i=1;i<=p;i++)
{
if(ans[i]>nb[i])
{
for(int j=1;j<=p;j++)
{
ans[j]=nb[j];
}
return ;
}
}
}
int main()
{
scanf("%d%d",&p,&x);
bool flag=false;
for(int j=9;j>=1;j--)
{
memset(nb,0,sizeof(nb));
nb[p]=j;
int res=0;
for(int i=p-1;i>=0;i--)
{
int tk=(nb[i+1]*x+res);
nb[i]=tk%10;
res=tk/10;
}
if(nb[1]==0) continue;
else if(nb[0]==j&&res==0)
{
if(flag==false)
{
memcpy(ans,nb,sizeof(ans));
flag=true;
}
ck(nb);
}
}
if(flag==true)
{
for(int i=1;i<=p;i++)
printf("%d",ans[i]);
putchar(10);
return 0;
}
puts("Impossible");
return 0;
}