#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int n, x, him = 0;
  cin >> n;
  set<int> ans;
  bool b = 0, bb = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x == 0 || x == 100)
      ans.insert(x);
    else if (x < 10 && !b)
      ans.insert(x), b = 1;
    else if (x % 10 == 0 && !bb)
      ans.insert(x), bb = 1;
    else
      him = x;
  }
  if (!b && !bb && him) ans.insert(him);
  cout << ans.size() << '\n';
  for (int x : ans) cout << x << " ";
}
