#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:16777216")
using namespace std;
vector<int> mods = {1000000007, 1000000009, 998244353};
const double pi = acos(-1.0);
const int inf = 0x3f3f3f3f;
const int maxn = 200005;
const int mod = mods[0];
void task() {
  int p, x;
  cin >> p >> x;
  std::vector<int> a(p + 5);
  bool f = 0;
  for (int dig = 1; dig <= 9; dig++) {
    a[p] = dig;
    int rem = 0;
    for (int i = p - 1; i; i--) {
      a[i] = a[i + 1] * x + rem;
      rem = a[i] / 10;
      a[i] %= 10;
    }
    if (a[1] * x + rem != dig or a[1] == 0) continue;
    f = 1;
    break;
  }
  if (!f)
    cout << "Impossible"
         << "\n";
  else
    for (int i = (1); i <= (p); ++i) cout << a[i];
  cout << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int T = 1;
  for (int __ = 1; __ <= T; __++) {
    task();
  }
  return 0;
}
