#include <bits/stdc++.h>
using namespace std;
int a[111];
int main() {
  int n;
  while (cin >> n) {
    bool has100 = false;
    bool has10 = false;
    bool has01 = false;
    vector<int> res;
    for (int i = (1), _b = (n); i <= _b; i++) {
      cin >> a[i];
      if (a[i] == 0)
        res.push_back(a[i]);
      else if (a[i] == 100) {
        if (!has100) res.push_back(100);
        has100 = true;
      } else if (a[i] < 10) {
        if (!has01) res.push_back(a[i]);
        has01 = true;
      } else if (a[i] % 10 == 0) {
        if (!has10) res.push_back(a[i]);
        has10 = true;
      }
    }
    if (!has10 && !has01) {
      for (int i = (1), _b = (n); i <= _b; i++)
        if (a[i] != 100 && a[i]) {
          res.push_back(a[i]);
          break;
        }
    }
    cout << res.size() << endl;
    for (auto x : res) cout << x << ' ';
    cout << endl;
  }
  return 0;
}
