#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, d;
  cin >> k >> d;
  if (k == 1)
    cout << d << "\n";
  else if (d >= 1) {
    cout << "1";
    k = k - 2;
    while (k--) cout << "0";
    if (d == 1)
      cout << "9\n";
    else
      cout << d - 1 << "\n";
  } else if (d == 0 && k == 1)
    cout << "0\n";
  else
    cout << "No solution\n";
  return 0;
}
