#include <bits/stdc++.h>
using namespace std;
long long digsum(long long n) {
  if (n == 0) return 0;
  return n % 10 + digsum(n / 10);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a, b, c;
  cin >> a >> b >> c;
  vector<long long int> ans;
  long long chk;
  for (int i = 1; i != 81; i += 1) {
    chk = b * pow(i, a) + c;
    if (digsum(chk) != i) continue;
    if (chk > 0 && chk < 1e9) ans.push_back(chk);
  }
  sort(ans.begin(), ans.end());
  cout << ans.size() << endl;
  for (auto au : ans) {
    cout << au << ' ';
  }
  return 0;
}
