#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, t, m, j = 1, l, r;
  long long i, k, p = 0, h = 0, x = 0, y, z, q;
  string s;
  t = 1;
  for (r = 0; r < t; r++) {
    int a, b, c;
    std::cin >> a >> b >> c;
    std::set<int> ans;
    std::set<int>::iterator it;
    for (i = 1; i <= 81; i++) {
      x = b * pow(i, a) + c;
      p = x;
      h = 0;
      while (p > 0) h += p % 10, p = p / 10;
      if (x > 0 && x < 1000000000 && h == i) ans.insert(x);
    }
    std::cout << ans.size() << std::endl;
    for (it = ans.begin(); it != ans.end(); it++) cout << *it << " ";
  }
  return 0;
}
