#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-15;
const int maxN = 1 * 100 + 10, mod = (int)1e9 + 7;
int k, n = 0;
int a[maxN];
int main(void) {
  ios_base::sync_with_stdio(0);
  int x[4] = {-1, -1, -1, -1};
  cin >> k;
  for (int i = 0; i < k; ++i) {
    cin >> a[i];
    if (a[i] == 100) x[0] = i;
    if (a[i] == 0) x[1] = i;
    if (a[i] > 0 && a[i] % 10 == 0 && a[i] < 100) x[2] = i;
    if (a[i] > 0 && a[i] < 10) x[3] = i;
  }
  for (int i = 0; i < 4; ++i) {
    if (x[i] != -1) n++;
  }
  if (n > 2) {
    cout << n << endl;
    for (int i = 0; i < 4; ++i) {
      if (x[i] != -1) {
        cout << a[x[i]] << ' ';
      }
    }
  } else {
    if (x[0] != -1 && x[1] != -1) {
      if (k > 2) {
        cout << 3 << endl << 0 << ' ' << 100 << ' ';
        for (int i = 0; i < k; ++i) {
          if (a[i] != 0 && a[i] != 100) {
            cout << a[i];
            break;
          }
        }
      } else
        cout << 2 << endl << 0 << ' ' << 100;
    } else {
      if (n > 1) {
        cout << n << endl;
        for (int i = 0; i < 4; ++i) {
          if (x[i] != -1) {
            cout << a[x[i]] << ' ';
          }
        }
      } else {
        if (x[0] != -1 || x[1] != -1) {
          if (k > 1) {
            if (x[1] != 0)
              cout << 2 << endl << 0 << ' ';
            else
              cout << 2 << endl << 100 << ' ';
            for (int i = 0; i < k; ++i) {
              if (a[i] != 0 && a[i] != 100) {
                cout << a[i];
                break;
              }
            }
          } else {
            if (x[0] != -1) cout << 1 << endl << 100;
            if (x[1] != -1) cout << 1 << endl << 0;
          }
        } else {
          if (n == 1) {
            cout << n << endl;
            for (int i = 0; i < 4; ++i) {
              if (x[i] != -1) {
                cout << a[x[i]] << ' ';
              }
            }
          } else
            cout << 1 << endl << a[0];
        }
      }
    }
  }
  return 0;
}
