#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, d;
  while (cin >> k >> d) {
    int a[1010] = {0};
    for (int i = 0; i < d; ++i) a[i % k]++;
    if (k > 1 && d == 0) {
      cout << "No solution";
    } else {
      for (int i = 0; i < k; ++i) cout << a[i];
    }
    cout << endl;
  }
  return 0;
}
