#include <bits/stdc++.h>
using namespace std;
const int NMAX = 100100;
vector<int> ans, a;
int main() {
  int n, val;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> val;
    if (val == 0)
      ans.push_back(0);
    else if (val == 100)
      ans.push_back(100);
    else
      a.push_back(val);
  }
  sort(a.begin(), a.end());
  int cnt = 0;
  bool k1, k2;
  k1 = k2 = false;
  for (int i = 0; i < a.size(); i++) {
    if (!k1 && a[i] < 10) {
      ans.push_back(a[i]);
      k1 = true;
    } else if (!k2 && a[i] >= 10 && a[i] % 10 == 0) {
      ans.push_back(a[i]);
      k2 = true;
    }
  }
  if (!k1 && !k2 && a.size() != 0) {
    ans.push_back(a[0]);
  }
  cout << ans.size() << endl;
  for (int i = 0; i < ans.size(); i++) {
    cout << ans[i] << ' ';
  }
  return 0;
}
