#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.);
const double eps = 1e-6;
int n, d;
int main() {
  scanf("%d%d", &n, &d);
  if (n == 1)
    printf("%d\n", d);
  else {
    if (d == 0) {
      puts("No solution");
    } else {
      printf("%d", 1);
      for (int i = 0; i < n - 2; i++) printf("%d", 0);
      printf("%d\n", d - 1);
    }
  }
  return 0;
}
