#include <bits/stdc++.h>
using namespace std;
class Solution {
 public:
  void solve(std::istream& in, std::ostream& out) {
    int k;
    int d;
    in >> k >> d;
    if (d == 0 && k > 1) {
      out << "No solution";
      return;
    }
    if (k == 1 && d < 10) {
      out << d;
      return;
    }
    if (d < k) {
      string ans = "";
      for (int i = 0; i < k; i++) {
        if (i < d) {
          ans += '1';
        } else {
          ans += '0';
        }
      }
      out << ans;
      return;
    } else if (d == k) {
      for (int i = 0; i < k; i++) {
        out << '1';
      }
      return;
    } else {
      int dif = d - k;
      for (int i = 0; i < k; i++) {
        if (i < dif) {
          out << '1';
        } else {
          out << '2';
        }
      }
      return;
    }
  }
};
void solve(std::istream& in, std::ostream& out) {
  out << std::setprecision(12);
  Solution solution;
  solution.solve(in, out);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  istream& in = cin;
  ostream& out = cout;
  solve(in, out);
  return 0;
}
