#include <bits/stdc++.h>
using namespace std;
int a[105], ans[10];
int main() {
  int n, i, sum, flag;
  while (scanf("%d", &n) != EOF) {
    flag = sum = 0;
    memset(ans, 0, sizeof(ans));
    for (i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      if (a[i] == 0 || a[i] == 100) {
        ans[sum] = a[i];
        sum++;
      } else if (a[i] > 0 && a[i] < 10 && !flag) {
        ans[sum] = a[i];
        sum++;
        flag = 1;
      }
    }
    if (flag)
      for (i = 0; i < n; i++) {
        if (a[i] % 10 == 0 && a[i] < 100 && a[i] > 9) {
          ans[sum] = a[i];
          sum++;
          break;
        }
      }
    else
      for (i = 0; i < n; i++)
        if (a[i] > 9 && a[i] < 100) {
          ans[sum] = a[i];
          sum++;
          break;
        }
    printf("%d\n", sum);
    for (i = 0; i < sum - 1; i++) printf("%d ", ans[i]);
    printf("%d\n", ans[i]);
  }
  return 0;
}
