#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[110];
  int k;
  cin >> k;
  int res = 0;
  vector<int> v;
  for (int i = 0; i < k; i++) {
    cin >> arr[i];
    if (arr[i] == 0) {
      res++;
      v.push_back(0);
    }
  }
  bool n1 = false;
  for (int i = 0; i < k; i++) {
    if (arr[i] > 0 && arr[i] < 10) {
      res++;
      v.push_back(arr[i]);
      n1 = true;
      break;
    }
  }
  bool n10 = false;
  for (int i = 0; i < k; i++) {
    if (arr[i] > 9 && arr[i] < 100 && arr[i] % 10 == 0) {
      res++;
      v.push_back(arr[i]);
      n10 = true;
      break;
    }
  }
  if (!n10 && !n1) {
    for (int i = 0; i < k; i++) {
      if (arr[i] > 10 && arr[i] < 100) {
        res++;
        v.push_back(arr[i]);
        break;
      }
    }
  }
  for (int i = 0; i < k; i++) {
    if (arr[i] == 100) {
      res++;
      v.push_back(arr[i]);
      break;
    }
  }
  cout << res << endl;
  if (res) {
    for (int i = 0; i < v.size(); i++) {
      if (i) cout << " ";
      cout << v[i];
    }
  }
  return 0;
}
