#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k;
  bool fl1 = true, fl2 = true;
  vector<int> v, a;
  cin >> k;
  for (i = 0; i < k; i++) {
    cin >> j;
    if (j == 0 || j == 100) {
      v.push_back(j);
    } else if (fl1 && j < 10) {
      v.push_back(j);
      fl1 = false;
    } else if (fl2 && j % 10 == 0) {
      v.push_back(j);
      fl2 = false;
    } else
      a.push_back(j);
  }
  if (fl1 && fl2 && (int)a.size()) {
    printf("%d\n%d ", (int)v.size() + 1, a[0]);
  } else {
    printf("%d\n", (int)v.size());
  }
  for (i = 0; i < (int)v.size(); i++) {
    printf("%d ", v[i]);
  }
  printf("\n");
  return 0;
}
