#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, k, d;
  string s, s1;
  cin >> k >> d;
  if (d == 0 && k != 1) {
    cout << "No solution" << endl;
  } else if (d == 0 && k == 1) {
    cout << "0" << endl;
  } else if (k == 1) {
    cout << to_string(d) << endl;
  } else {
    s = "1";
    for (i = 1; i < k - 1; i++) {
      s1 = "0";
      s = s + s1;
    }
    if (s.length() != k) {
      n = d - 1;
      s1 = to_string(n);
      s = s + s1;
    }
    cout << s << endl;
  }
  return 0;
}
