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