#include <bits/stdc++.h>
using namespace std;
const int max_n = 105;
int n;
int a[max_n];
vector<int> res;
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  sort(a, a + n);
  if (a[0] == 0) res.push_back(0);
  if (a[n - 1] == 100) res.push_back(100);
  bool b = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] != 0 and a[i] != 100 and a[i] % 10 == 0) {
      b = 1;
      res.push_back(a[i]);
      break;
    }
  }
  for (int i = 0; i < n; i++) {
    if (a[i] != 0 and a[i] / 10 == 0) {
      b = 1;
      res.push_back(a[i]);
      break;
    }
  }
  if (!b)
    for (int i = 0; i < n; i++) {
      if (a[i] != 0 and a[i] != 100) {
        res.push_back(a[i]);
        break;
      }
    }
  printf("%d\n", res.size());
  for (int i = 0; i < res.size(); i++) printf("%d ", res[i]);
  return 0;
}
