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