#include <bits/stdc++.h>
using namespace std;
const int MAXN = 110;
int d[MAXN];
int k;
int main() {
  scanf("%d", &k);
  bool was1 = false, was2 = false, was12 = false;
  int res = 0;
  for (int i = 0; i < k; i++) {
    scanf("%d", &d[i]);
    if (d[i] % 100 == 0)
      res++;
    else if (!was1 && d[i] < 10)
      was1 = true, res++;
    else if (!was2 && d[i] % 10 == 0)
      was2 = true, res++;
    else if (d[i] >= 10 && d[i] % 10 != 0)
      was12 = true;
  }
  if (!was1 && !was2) res += int(was12);
  printf("%d\n", res);
  was1 = was2 = false;
  for (int i = 0; i < k; i++) {
    if (d[i] % 100 == 0)
      printf("%d ", d[i]);
    else if (!was1 && d[i] < 10) {
      was1 = true;
      printf("%d ", d[i]);
    } else if (!was2 && d[i] % 10 == 0) {
      was2 = true;
      printf("%d ", d[i]);
    }
  }
  if (!was1 && !was2 && was12)
    for (int i = 0; i < k; i++)
      if (d[i] >= 10 && d[i] % 10 != 0) {
        printf("%d\n", d[i]);
        break;
      }
  return 0;
}
