#include <bits/stdc++.h>
using namespace std;
int a[105], b[105];
bool f[3];
int main() {
  int k, t, num = 0, x, xx, xxx;
  cin >> k;
  for (int i = 0; i < k; i++) {
    cin >> b[i];
    if (b[i] == 0 || b[i] == 100)
      a[num++] = b[i];
    else if (b[i] > 0 && b[i] < 10) {
      f[0] = 1, x = i;
    } else if (b[i] % 10 == 0) {
      f[1] = 1, xx = i;
    } else if (b[i] > 10 && b[i] < 100)
      f[2] = 1, xxx = i;
  }
  if (f[1]) {
    a[num++] = b[xx];
    if (f[0]) a[num++] = b[x];
  } else if (f[0])
    a[num++] = b[x];
  else if (f[2])
    a[num++] = b[xxx];
  cout << num << endl;
  for (int i = 0; i < num; i++) cout << a[i] << " ";
  return 0;
}
