#include <bits/stdc++.h>
using namespace std;
long long a, b, c, f, ans, temp;
vector<long long> arr;
int main() {
  cin >> a >> b >> c;
  ans = 0;
  for (long long i = 1; i < 82; i++) {
    f = pow(i, a);
    f *= b;
    f += c;
    if (f < 1000000000) {
      temp = f;
      ans = 0;
      while (f > 0) {
        ans += f % 10;
        f /= 10;
      }
      if (ans == i) arr.push_back(temp);
    }
  }
  cout << arr.size() << "\n";
  for (auto u : arr) cout << u << " ";
  return 0;
}
