#include <bits/stdc++.h>
using namespace std;
int check(long a);
int main() {
  int n;
  cin >> n;
  int a[n], b[5] = {0};
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] == 0)
      b[0]++;
    else if (a[i] == 100)
      b[1]++;
    else if (a[i] % 10 == 0)
      b[2]++;
    else if (a[i] < 10)
      b[3]++;
    else
      b[4]++;
  }
  if (n == 1)
    cout << "1" << endl << a[0] << endl;
  else {
    if (b[0] > 0 && b[2] > 0 && b[3] > 0) {
      if (b[1] > 0)
        cout << "4" << endl;
      else
        cout << "3" << endl;
      for (int i = 0; i < n; i++) {
        if (a[i] == 0 || a[i] == 100)
          cout << a[i] << " ";
        else if (a[i] % 10 == 0 && b[2] > 0) {
          cout << a[i] << " ";
          b[2] = 0;
        } else if (a[i] < 10 && b[3] > 0) {
          cout << a[i] << " ";
          b[3] = 0;
        }
      }
    } else if (b[0] > 0 && (b[2] == 0 || b[3] == 0) &&
               (!(b[2] == 0 && b[3] == 0))) {
      if (b[1] > 0)
        cout << "3" << endl;
      else
        cout << "2" << endl;
      for (int i = 0; i < n; i++) {
        if (a[i] == 0 || a[i] == 100)
          cout << a[i] << " ";
        else if (a[i] % 10 == 0 && b[2] > 0) {
          cout << a[i] << " ";
          b[2] = 0;
        } else if (a[i] < 10 && b[3] > 0) {
          cout << a[i] << " ";
          b[3] = 0;
        }
      }
    } else if (b[0] > 0 && b[2] == 0 && b[3] == 0 && b[4] > 0) {
      if (b[1] > 0)
        cout << "3" << endl;
      else
        cout << "2" << endl;
      for (int i = 0; i < n; i++) {
        if (a[i] == 0 || a[i] == 100)
          cout << a[i] << " ";
        else if (a[i] % 10 != 0 && a[i] > 10 && b[4] > 0) {
          cout << a[i] << " ";
          b[4] = 0;
        }
      }
    } else if (b[3] == 0 && b[2] == 0 && b[4] == 0) {
      cout << "2" << endl << "0 100 ";
    } else if (b[0] == 0 && b[1] > 0) {
      if (b[2] > 0 && b[3] > 0) {
        cout << "3" << endl;
        for (int i = 0; i < n; i++) {
          if (a[i] == 100)
            cout << a[i] << " ";
          else if (a[i] % 10 == 0 && b[2] > 0) {
            cout << a[i] << " ";
            b[2] = 0;
          } else if (a[i] < 10 && b[3] > 0) {
            cout << a[i] << " ";
            b[3] = 0;
          }
        }
      } else if ((b[2] == 0 || b[3] == 0) && (!(b[2] == 0 && b[3] == 0))) {
        cout << "2" << endl;
        for (int i = 0; i < n; i++) {
          if (a[i] == 100)
            cout << a[i] << " ";
          else if (a[i] % 10 == 0 && b[2] > 0) {
            cout << a[i] << " ";
            b[2] = 0;
          } else if (a[i] < 10 && b[3] > 0) {
            cout << a[i] << " ";
            b[3] = 0;
          }
        }
      } else if (b[2] == 0 && b[3] == 0 && b[4] > 0) {
        cout << "2" << endl;
        for (int i = 0; i < n; i++) {
          if (a[i] == 100)
            cout << a[i] << " ";
          else if (a[i] > 10 && b[4] > 0) {
            cout << a[i] << " ";
            b[4] = 0;
          }
        }
      }
    } else if (b[0] == 0 && b[1] == 0) {
      if (b[2] > 0 && b[3] > 0) {
        cout << "2" << endl;
        for (int i = 0; i < n; i++) {
          if (a[i] % 10 == 0 && b[2] > 0) {
            cout << a[i] << " ";
            b[2] = 0;
          } else if (a[i] < 10 && b[3] > 0) {
            cout << a[i] << " ";
            b[3] = 0;
          }
        }
      } else if (b[2] == 0 && b[3] != 0) {
        cout << "1" << endl;
        for (int i = 0; i < n; i++) {
          if (a[i] < 10 && b[3] > 0) {
            cout << a[i] << " ";
            b[3] = 0;
          }
        }
      } else if (b[3] == 0 && b[2] != 0) {
        cout << "1" << endl;
        for (int i = 0; i < n; i++) {
          if (a[i] % 10 && b[2] > 0) {
            cout << a[i] << " ";
            b[2] = 0;
          }
        }
      } else if (b[2] == 0 && b[3] == 0) {
        cout << "1" << endl;
        cout << a[0] << " ";
      }
    }
  }
  return 0;
}
