#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
int power(int a, int b) {
  if (b == 0) return 1;
  if (b == 1) return a;
  if (b & 1) return a * power(a, b - 1);
  return power(a * a, b >> 1);
}
int sum(int a) {
  int res = 0;
  while (a) {
    res += a % 10;
    a /= 10;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int a, b, c;
  cin >> a >> b >> c;
  vector<int> ans;
  for (__typeof(82) i = (1) - ((1) > (82)); i != (82) - ((1) > (82));
       i += 1 - 2 * ((1) > (82))) {
    long long res = b * power(i, a) + c;
    if (res >= (int)1e9) break;
    if (sum(res) == i) ans.push_back(res);
  }
  cout << ans.size() << endl;
  for (__typeof(ans.size()) i = (0) - ((0) > (ans.size()));
       i != (ans.size()) - ((0) > (ans.size()));
       i += 1 - 2 * ((0) > (ans.size())))
    cout << ans[i] << " \n"[i == ans.size() - 1];
  return 0;
}
