#include <bits/stdc++.h>
int main() {
  int k, h = 0, t = 0, o = 0, z = 1, t1 = 0, i, j = 0;
  scanf("%d", &k);
  int a[k], b[4];
  for (i = 0; i < k; i++) {
    scanf("%d", &a[i]);
    if (a[i] == 100)
      h = 100;
    else if (a[i] == 0)
      z = 0;
    else if (a[i] % 10 == 0)
      t = a[i];
    else if (a[i] > 0 && a[i] < 10)
      o = a[i];
    else
      t1 = a[i];
  }
  if (t != 0) {
    if (h != 0) {
      b[j] = h;
      j++;
    }
    b[j] = t;
    j++;
    if (o != 0) {
      b[j] = o;
      j++;
    }
    if (z == 0) {
      b[j] = 0;
      j++;
    }
  } else if (t == 0 && t1 != 0) {
    if (h != 0) {
      b[j] = h;
      j++;
    }
    b[j] = t1;
    j++;
    if (z == 0) {
      b[j] = 0;
      j++;
    }
  } else if (t == 0 && t1 == 0) {
    if (h != 0) {
      b[j] = h;
      j++;
    }
    if (o != 0) {
      b[j] = o;
      j++;
    }
    if (z == 0) {
      b[j] = 0;
      j++;
    }
  }
  printf("%d\n", j);
  for (i = 0; i < j; i++) printf("%d ", b[i]);
  return 0;
}
