#include <bits/stdc++.h>
using namespace std;
int save[120];
int main() {
  int k;
  int kind[5];
  while (scanf("%d", &k) != EOF) {
    memset(kind, 0, sizeof(kind));
    for (int i = 1; i <= k; i++) {
      scanf("%d", &save[i]);
      if (save[i] == 0) {
        if (kind[2] == 0) kind[2] = i;
      } else if (save[i] == 100) {
        if (kind[3] == 0) kind[3] = i;
      } else if (save[i] % 10 == 0) {
        if (kind[1] == 0) kind[1] = i;
      } else if (save[i] < 10) {
        if (kind[0] == 0) kind[0] = i;
      } else {
        if (kind[4] == 0) kind[4] = i;
      }
    }
    int ans = 0;
    int bb[5];
    for (int i = 0; i <= 1; i++)
      if (kind[i]) {
        bb[++ans] = save[kind[i]];
      }
    if (ans == 0 && kind[4]) bb[++ans] = save[kind[4]];
    for (int i = 2; i <= 3; i++)
      if (kind[i]) bb[++ans] = save[kind[i]];
    printf("%d\n", ans);
    for (int i = 1; i <= ans; i++) printf("%d ", bb[i]);
    putchar('\n');
  }
  return 0;
}
