#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n >> x;
  for (char c = x + '0'; c <= '9'; c++) {
    int rem = 0;
    string ans, tmp;
    tmp += c;
    for (int i = 0; i < n; i++) {
      char t = (((rem * 10) + tmp[i] - '0') / x) + '0';
      ans += t;
      tmp += t;
      rem = ((rem * 10) + tmp[i] - '0') % x;
      if (i == n - 1 && rem == 0 && t == tmp[0]) {
        cout << ans << endl;
        return 0;
      }
    }
  }
  cout << "Impossible";
}
