#include <bits/stdc++.h>
using namespace std;
string answer = "";
const int N = 1000 * 1000 + 10;
int arr[N];
void check(int n, int k, int x) {
  int rest = (x * k) / 10;
  arr[0] = (x * k) % 10;
  string str;
  str += char(arr[0] + '0');
  for (int i = 1; i < n; i++) {
    int tmp = arr[i - 1];
    tmp *= k;
    tmp += rest;
    arr[i] = tmp % 10;
    rest = tmp / 10;
    str += char(arr[i] + '0');
  }
  if (arr[n - 1] != x || rest != 0) return;
  reverse(str.begin(), str.end());
  str += str[0];
  str = str.substr(1, str.size());
  if (str[0] == '0') return;
  if (answer == "") answer = str;
  answer = min(answer, str);
}
int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  if (n == 1) {
    if (k == 1)
      cout << 1;
    else
      cout << "Impossible\n";
    return 0;
  }
  for (int i = 1; i < 10; i++) {
    check(n, k, i);
  }
  if (answer == "")
    printf("Impossible\n");
  else
    cout << answer << "\n";
}
