#include <bits/stdc++.h>
using namespace std;
int sum(long long x) {
  int s = 0;
  while (x) {
    s += x % 10;
    x /= 10;
  }
  return s;
}
long long powa(int a, int b) {
  long long p = 1;
  for (int i = 0; i < b; i++) {
    p *= a;
  }
  return p;
}
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  vector<long long> sol;
  for (int i = 1; i <= 81; i++) {
    long long x = b * powa(i, a) + c;
    if (x < 1e9 && sum(x) == i) sol.push_back(x);
  }
  cout << sol.size() << "\n";
  for (int i = 0; i < sol.size(); i++) cout << sol[i] << " ";
  return 0;
}
