#include <bits/stdc++.h>
using namespace std;
int f(int k) {
  long sum = 0;
  while (k >= 10) {
    sum += k % 10;
    k = k / 10;
  }
  sum += k;
  return sum;
}
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  vector<long long> v;
  long long i;
  for (i = 1; i <= 81; i++) {
    if (b * pow(i, a) + c <= 1000000000 && b * pow(i, a) + c > 0) {
      if (f(b * pow(i, a) + c) == i) v.push_back(b * pow(i, a) + c);
    }
  }
  if (v.size() != 0) {
    cout << v.size() << " " << endl;
    for (i = 0; i < v.size(); i++) {
      cout << v[i] << " ";
    }
  } else
    cout << 0 << endl;
}
