#include <bits/stdc++.h>
using namespace std;
long long sod(long long k) {
  long long sum = 0;
  while (k != 0) {
    sum += (k % 10);
    k /= 10;
  }
  return sum;
}
long long power(long long a, long long b) {
  if (b == 0) {
    return 1;
  }
  if (b == 1) {
    return a;
  }
  long long k = power(a, b / 2);
  if (b & 1) {
    return k * k * a;
  }
  return k * k;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long a, b, c;
  cin >> a >> b >> c;
  vector<long long> ans;
  for (long long i = 1; i <= 81; i++) {
    long long k = b * power(i, a) + c;
    if (k > 0 && k < 1e9) {
      if (sod(k) == i) {
        ans.push_back(k);
      }
    }
  }
  cout << ans.size() << "\n";
  for (auto i : ans) {
    cout << i << " ";
  }
  return 0;
}
