#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int a[n];
  vector<int> b;
  int i;
  int s = 0;
  int o = 0, t = 0, z = 0, h = 0;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 10 == 0 && a[i] != 100 && a[i] != 0) {
      s = 1;
    }
  }
  sort(a, a + n);
  for (i = 0; i < n; i++) {
    if (n == 1) {
      cout << "1" << endl << a[0];
      return 0;
    } else {
      if (a[i] == 0) {
        b.push_back(a[i]);
        z++;
      } else if (a[i] == 100) {
        b.push_back(a[i]);
        h++;
      } else if (o == 0 && a[i] > 0 && a[i] < 10) {
        b.push_back(a[i]);
        o++;
      } else if (t == 0 && a[i] >= 10 && a[i] < 100 && a[i] % 10 == 0) {
        b.push_back(a[i]);
        t++;
      } else if (s == 0 && a[i] >= 10 && a[i] < 100 && o == 0) {
        b.push_back(a[i]);
        s++;
      }
    }
  }
  if (b.size() == 0) {
    cout << "1" << endl << a[0];
  } else {
    cout << b.size() << endl;
    for (i = 0; i < b.size(); i++) {
      cout << b[i] << " ";
    }
  }
}
