#include <bits/stdc++.h>
using namespace std;
int a[1111], x, n, s, y, o, oo;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x == 0 || x == 100)
      a[s++] = x;
    else if (x < 10 && o == 0)
      a[s++] = x, o = 1;
    else if (x % 10 == 0 && oo == 0)
      a[s++] = x, oo = 1;
    else
      y = x;
  }
  if (o == 0 && oo == 0 && y != 0) a[s++] = y;
  cout << s << endl;
  for (int i = 0; i < s; i++) cout << a[i] << " ";
  return 0;
}
