#include <bits/stdc++.h>
using namespace std;
int ans[107];
int a[107];
bool b[107];
int main() {
  int n;
  cin >> n;
  int cnt = 0, x;
  bool flag2 = 0, flag3 = 0;
  memset(b, 0, sizeof(b));
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    x = a[i];
    if (x == 0)
      ans[cnt++] = x, b[x] = 1;
    else if (x % 100 == 0)
      ans[cnt++] = x, b[x] = 1;
    else if (x % 10 == 0 && !flag2)
      ans[cnt++] = x, flag2 = 1, b[x] = 1;
    else if (x / 10 == 0 && !flag3)
      ans[cnt++] = x, flag3 = 1, b[x] = 1;
  }
  if (!flag2 && !flag3) {
    for (int i = 0; i < n; i++)
      if (!b[a[i]]) {
        ans[cnt++] = a[i];
        break;
      }
  }
  cout << cnt << endl;
  for (int i = 0; i < cnt; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
