#include <bits/stdc++.h>
using namespace std;
long n, a[100000] = {0}, m;
long long h(int a) {
  long long s = 0;
  while (a > 0) {
    s += a % 10;
    a = a / 10;
  }
  return s;
}
int main() {
  cin >> n >> m;
  if (m == 0 && n > 1) {
    cout << "No solution";
    return 0;
  }
  long j = 10 + m - 1;
  if (n == 1) {
    cout << m;
    return 0;
  }
  cout << j / 2 << j - j / 2;
  for (int k = 3; k <= n; ++k) cout << 0;
  return 0;
}
