#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  string s;
  int mok;
  int r;
  int plus;
  int cur;
  vector<string> cand;
  for (int i = 1; i < 10; i++) {
    string s = "";
    int start = i;
    r = 0;
    plus = 0;
    for (int j = 0; j < n; j++) {
      cur = (start * m) + plus;
      if (cur == 0) break;
      plus = cur / 10;
      if (j == n - 1 && plus > 0) break;
      r = cur % 10;
      s += char(r + 48);
      start = r;
    }
    reverse(s.begin(), s.end());
    if (s.length() == n && s[0] == char(i + 48)) {
      s.push_back(s[0]);
      s[0] = '.';
      cand.push_back(s);
    }
  }
  if (cand.size() == 0)
    cout << "Impossible";
  else {
    for (int j = 0; j < cand.size(); j++)
      if (cand[j][1] != '0') {
        for (int i = 1; i <= n; i++) {
          cout << cand[j][i];
        }
        break;
      }
  }
  return 0;
}
