#include <bits/stdc++.h>
using namespace std;
int n, m, b[1000005], a[1000005];
vector<string> v;
void process() {
  int c = 0;
  for (int i = n - 1; i > 0; i--) {
    a[i - 1] = b[i] = (a[i] * m + c) % 10;
    c = (a[i] * m + c) / 10;
  }
  if (a[0] * m + c == b[0] && a[0] != 0) {
    string r = "";
    for (int i = 0; i < n; i++) {
      r += a[i] + '0';
    }
    v.push_back(r);
  }
}
int main() {
  cin >> n >> m;
  if (n == 1) {
    if (m == 1) {
      cout << 1 << endl;
    } else {
      cout << "Impossible" << endl;
    }
    return 0;
  }
  for (int i = 1; i <= 9; i++) {
    a[n - 1] = b[0] = i;
    process();
  }
  if (v.empty()) {
    cout << "Impossible" << endl;
    return 0;
  }
  sort(v.begin(), v.end());
  cout << v[0] << endl;
  return 0;
}
