#include <bits/stdc++.h>
using namespace std;
long long S(long long x) {
  long long sum = 0;
  while (x > 0) {
    sum += (x % 10);
    x /= 10;
  }
  return sum;
}
long long dr(long long x) {
  if (S(x) < 10)
    return S(x);
  else
    return dr(S(x));
}
long nines(int x) {
  long long sum = 9;
  for (int i = 0; i < x - 1; ++i) {
    sum *= 10;
    sum += 9;
  }
  return sum;
}
long long tens(int x) {
  long long sum = 1;
  for (int i = 0; i < x - 1; ++i) {
    sum *= 10;
    sum += 1;
  }
  return sum;
}
int main() {
  int k, d, key;
  bool isFound = false;
  cin >> k >> d;
  long long intial = tens(k);
  long long end = nines(k);
  if (d == 0 && k > 1) {
    cout << "No solution";
  } else {
    for (int i = k; i >= 2; --i) cout << "9";
    cout << d;
  }
  return 0;
}
