#include <bits/stdc++.h>
using namespace std;
int n, a[200], b, c = -1, d, p, e, ans;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == 100 && !b) {
      ans++;
      b = a[i];
    } else if (a[i] == 0 && c == -1) {
      ans++;
      c = a[i];
    } else if (a[i] % 10 == 0 && (a[i] / 10) > 0 && !d) {
      ans++;
      d = a[i];
    } else if (a[i] % 10 > 0 && a[i] / 10 == 0 && !p) {
      ans++;
      p = a[i];
    } else if (a[i] % 10 > 0 && a[i] / 10 > 0 && !e) {
      ans++;
      e = a[i];
    }
  }
  if ((e && d) || (e && p)) {
    ans--;
    e = 0;
  }
  cout << ans << endl;
  if (b) cout << b << " ";
  if (!c) cout << c << " ";
  if (d) cout << d << " ";
  if (e) cout << e << " ";
  if (p) cout << p << " ";
  return 0;
}
