#include <bits/stdc++.h>
using namespace std;
int k, temp, num[5];
vector<int> ans;
int main() {
  scanf("%d", &k);
  for (int i = 0; i < k; i++) {
    scanf("%d", &temp);
    if (temp == 100) {
      num[0] = temp;
      continue;
    }
    if (temp == 0) {
      num[4] = 1;
      continue;
    }
    if (temp < 10) {
      num[3] = temp;
      continue;
    }
    if (temp % 10 == 0) {
      num[2] = temp;
      continue;
    }
    num[1] = temp;
  }
  if (num[0]) ans.push_back(100);
  if (num[2]) ans.push_back(num[2]);
  if (num[3]) ans.push_back(num[3]);
  if (!num[2] && !num[3] && num[1]) ans.push_back(num[1]);
  if (num[4]) ans.push_back(0);
  printf("%d\n", ans.size());
  for (vector<int>::iterator i = ans.begin(); i != ans.end(); i++)
    printf("%d ", *i);
  return 0;
}
