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