#include <bits/stdc++.h>
long long int pow(int s, int a) {
  int i;
  long long int m = 1;
  for (i = 0; i < a; i++) {
    m = m * s;
  }
  return m;
}
int jia(long long int x) {
  int m = 0;
  while (x) {
    m = m + x % 10;
    x = x / 10;
  }
  return m;
}
int main() {
  long long int x, ab[100];
  int a, b, c, s, f, flag, i;
  while (~scanf("%d %d %d", &a, &b, &c)) {
    flag = 0;
    for (s = 1; s <= 81; s++) {
      x = b * pow(s, a) + c;
      f = jia(x);
      if (x > 0 && x < 1000000000 && f == s) {
        ab[flag] = x;
        flag++;
      }
    }
    printf("%d\n", flag);
    if (flag != 0) {
      for (i = 0; i < flag; i++) printf("%lld ", ab[i]);
      printf("\n");
    }
  }
  return 0;
}
