public void solve() throws IOException {
    int k = nextInt();
    int d = nextInt();
    char[] ans = new char[k];
    for (int x = 0; x < k; x++)
      ans[x] = '0';
    if (d > 0 || k == 1) {
      ans[0] = (char) (d + 48);
      System.out.println(new String(ans));
    } else {
      System.out.println("No solution");
    }
  }