#include <bits/stdc++.h>
using namespace std;
int main() {
  int k, i, a, m = 0, s = 0, p = 0, w = 0, q, n[10];
  cin >> k;
  for (i = 0; i < k; i++) {
    cin >> a;
    if (a == 0)
      n[m++] = 0;
    else if (a == 100)
      n[m++] = 100;
    else if (a / 10 == 0 && s == 0) {
      n[m++] = a;
      s = 1;
    } else if (a % 10 == 0 && p == 0) {
      n[m++] = a;
      p = 1;
    } else {
      q = a;
      w = 1;
    }
  }
  if (p == 0 && s == 0 && w == 1) n[m++] = q;
  cout << m << endl;
  for (i = 0; i < m; i++) cout << n[i] << ' ';
  return 0;
}
