#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, i, j, k, l, n, m, o, p, a, b, c, d, q;
  cin >> n;
  vector<int> vec(n, 0);
  vector<int> choo(n, 0);
  k = 0;
  for (i = 0; i < n; i++) {
    cin >> vec[i];
  }
  p = 0;
  q = 0;
  for (i = 0; i < n; i++) {
    m = 1;
    m = vec[i];
    l = 0;
    if (vec[i] == 0 || vec[i] == 100) {
      choo[i] = 1;
      l = 1;
    } else if (m < 10 && q == 0) {
      choo[i] = 1;
      l = 1;
      q = 1;
    }
    if (m >= 10 && m < 100 && p == 0) {
      if (m % 10 == 0) {
        choo[i] = 1;
        l = 1;
        m = m / 10;
        p = 1;
      }
    }
  }
  for (i = 0; i < n; i++) {
    if (k == 0 && p == 0 && q == 0 && vec[i] != 0 && vec[i] != 100) {
      choo[i] = 1;
      k = 1;
    }
  }
  a = 0;
  for (i = 0; i < n; i++) {
    if (choo[i] == 1) {
      a++;
    }
  }
  cout << a << endl;
  for (i = 0; i < n; i++) {
    if (choo[i] == 1) {
      cout << vec[i] << " ";
    }
  }
  return 0;
}
