#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c, x = 0, y = 0, z = 0, v = 0;
  vector<int> s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if ((c == 0 || c == 100))
      x = 1, s.push_back(c);
    else if (y == 0 && (c > 0 && c < 10))
      y = 1, s.push_back(c);
    else if (z == 0 && (c >= 10 && c <= 99 && c % 10 == 0))
      z = 1, s.push_back(c);
    else
      v = c;
  }
  if (y == 0 && z == 0 && v != 0) s.push_back(v);
  sort(s.begin(), s.end());
  cout << s.size() << endl;
  for (int i = 0; i < s.size(); i++) cout << s[i] << " ";
  return 0;
}
