#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a;
  vector<int> v;
  vector<int> sol;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    v.push_back(a);
  }
  bool yt = true;
  bool lo = true;
  int p;
  bool c = false;
  for (int i = 0; i < n; i++) {
    if (v[i] > 10 && v[i] < 100) {
      p = v[i];
      c = true;
    }
    if (v[i] == 0 || v[i] == 100) {
      sol.push_back(v[i]);
    } else {
      if (v[i] >= 10 && v[i] % 10 == 0 && lo) {
        sol.push_back(v[i]);
        lo = false;
      }
      if (v[i] > 0 && v[i] < 10 && yt) {
        sol.push_back(v[i]);
        yt = false;
      }
    }
  }
  if (yt && lo && c) sol.push_back(p);
  cout << sol.size() << endl;
  for (int i = 0; i < sol.size(); i++) {
    cout << sol[i] << " ";
  }
  cout << endl;
}
