#include <bits/stdc++.h>
using namespace std;
long long pow(int i, int a) {
  long long ans = 1;
  for (int j = 0; j < a; j++) {
    ans *= i;
  }
  return ans;
}
int sum1(long long x) {
  int ans = 0;
  while (x > 0) {
    ans += (x % 10);
    x = x / 10;
  }
  return ans;
}
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  vector<int> ans;
  long long x;
  for (int i = 1; i < 82; i++) {
    x = b * pow(i, a) + c;
    if (x > 0 && x < (long long)(1e9)) {
      if (sum1(x) == i) {
        ans.push_back(x);
      }
    }
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i] << " ";
  }
  return 0;
}
