#include <bits/stdc++.h>
using namespace std;
int s(long long x) {
  int res = 0;
  while (x > 0) {
    res += x % 10;
    x /= 10;
  }
  return res;
}
long long binpow(long long a, long long b) {
  long long res = 1;
  while (b > 0) {
    if (b & 1) res = res * a;
    a = a * a;
    b /= 2;
  }
  return res;
}
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int solsize = 0;
  vector<int> sol;
  for (int sx = 1; sx < 81; sx++) {
    long long x = (long long)b * binpow(sx, a) + c;
    if (s(x) == sx and x < 1e9 and x > 0) {
      sol.push_back(b * binpow(sx, a) + c);
      solsize++;
    }
  }
  cout << sol.size() << endl;
  for (auto e : sol) cout << e << " ";
  cout << endl;
  return 0;
}
