#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  if (m == 0 && n != 1) {
    cout << "No solution" << endl;
    return 0;
  }
  for (int i = 0; i < n; i++) {
    cout << min(m, 9);
    m -= min(m, 9);
  }
  return 0;
}
