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