#include <bits/stdc++.h>
using namespace std;
int sum(long long x) {
  int c = 0;
  while (x) {
    c += x % 10;
    x /= 10;
  }
  return c;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  int t = 1;
  while (t--) {
    vector<int> ans;
    int a, b, c;
    cin >> a >> b >> c;
    for (int i = 1; i <= 81; i++) {
      long long curr = (long long)b * pow(i, (long long)a) + c;
      if (curr >= 1000000000) break;
      if (sum(curr) == i) ans.push_back(curr);
    }
    cout << ans.size() << "\n";
    for (auto& i : ans) {
      cout << i << " ";
    }
    cout << "\n";
  }
}
