#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int n, a[101], b[4] = {-1, -1, -1, -1};
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int ans = 0;
  if (a[0] == 0) b[0] = 0;
  for (long long i = 0; i < n; i++) {
    if (a[i] < 10) {
      if (a[i] > 0) b[1] = a[i];
    } else if (a[i] < 100) {
      if (a[i] % 10 == 0)
        b[2] = a[i];
      else if (b[2] == -1 && b[1] == -1)
        b[2] = a[i];
    } else if (a[i] == 100)
      b[3] = 100;
  }
  for (long long i = 0; i < 4; i++)
    if (b[i] != -1) ans++;
  cout << ans << endl;
  for (long long i = 0; i < 4; i++)
    if (b[i] != -1) cout << b[i] << " ";
  return 0;
}
