#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  vector<long long> v;
  long long a, b, c;
  cin >> a >> b >> c;
  for (long long i = 1; i < 81; i++) {
    long long x = b * pow(i, a) + c;
    long long s = 0, y = x;
    while (x) {
      s += x % 10;
      x /= 10;
    }
    if (s == i && y < 1000000000) v.emplace_back(y);
  }
  cout << v.size() << "\n";
  for (auto it = (v).begin(); it != (v).end(); it++) cout << *it << " ";
  return 0;
}
