#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int v[120];
  for (int i = 0; i < n; i++) cin >> v[i];
  sort(v, v + n);
  vector<int> Q;
  int k = 0;
  if (v[n - 1] == 100) {
    Q.push_back(100);
    n--;
  }
  if (v[0] == 0) {
    Q.push_back(0);
    k = 1;
  }
  bool w = 1, e = 1;
  int second = 0;
  for (int i = k; i < n; i++) {
    if (v[i] == 100) continue;
    if (v[i] == 0) {
      Q.push_back(0);
      continue;
    }
    if (v[i] / 10 == 0 and v[i] % 10 != 0 and e) {
      Q.push_back(v[i]);
      e = 0;
      continue;
    }
    if (v[i] / 10 != 0 and v[i] % 10 == 0 and w) {
      Q.push_back(v[i]);
      w = 0;
      continue;
    }
    second = v[i];
  }
  if (e and w and second) Q.push_back(second);
  cout << Q.size() << endl;
  for (int i = 0; i < Q.size(); i++) cout << Q[i] << " ";
  cout << endl;
}
