#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, x, n;
  cin >> n;
  int a1 = -1, a2 = -1, a3 = -1;
  vector<int> v;
  for (i = 0; i < n; i++) {
    cin >> x;
    if (x == 0)
      v.push_back(x);
    else if (x == 100)
      v.push_back(x);
    else if (x % 10 == 0)
      a1 = x;
    else if (x / 10 == 0)
      a2 = x;
    else
      a3 = x;
  }
  if (a1 != -1) v.push_back(a1);
  if (a2 != -1) v.push_back(a2);
  if (a1 == -1 && a2 == -1 && a3 != -1) v.push_back(a3);
  cout << v.size() << endl;
  for (i = 0; i < v.size(); i++) printf("%d ", v[i]);
  return 0;
}
