#include <bits/stdc++.h>
using namespace std;
long long digitSum(long long x) {
  long long a = 0;
  while (x) {
    a += (x % 10);
    x /= 10;
  }
  return a;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long a, b, c;
  cin >> a >> b >> c;
  vector<long long> ans;
  for (long long x = 1; x <= 100; x++) {
    long long w = b * pow(x, a) + c;
    if (digitSum(w) == x) {
      if (w < 1e9 && w > 0) ans.push_back(w);
    }
  }
  cout << ans.size() << "\n";
  for (long long u : ans) cout << u << " ";
  cout << "\n";
  return 0;
}
