#include <bits/stdc++.h>
using namespace std;
long long sum_digit(long long n) {
  long long sum = 0;
  while (n) sum += n % 10, n /= 10;
  return sum;
}
int main() {
  long long n, m, k;
  vector<int> arr;
  cin >> n >> m >> k;
  for (int x = 1; x < 82; x++) {
    long long p = 1;
    for (int i = 1; i <= n; i++) p *= x;
    p *= m;
    p += k;
    if (p < 1000000000 && x == sum_digit(p)) arr.push_back(p);
  }
  cout << arr.size() << endl;
  for (int x = 0; x < arr.size(); cout << arr[x++] << ' ')
    ;
  return 0;
}
