#include <bits/stdc++.h>
using namespace std;
void fast();
int main() {
  fast();
  int k, d;
  cin >> k >> d;
  string ans = "";
  if ((d > (pow(10, k) - 1)) || (d == 0 && k != 1)) {
    cout << "No solution";
    return 0;
  }
  for (int i = 0; i < k; i++) {
    if (d > 9) {
      ans += "9";
      d -= 9;
    } else {
      stringstream t;
      t << d;
      ans += t.str();
      d = 0;
    }
  }
  cout << ans;
  return 0;
}
void fast() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
}
