public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int a , b , c , d , e , f , g ;
  a = sc . nextInt ( ) ;
  Vector < Integer > x = new Vector < Integer > ( ) ;
  g = 0 ;
  e = 0 ;
  f = 0 ;
  d = 0 ;
  for ( b = 0 ;
  b < a ;
  b ++ ) {
    c = sc . nextInt ( ) ;
    if ( c == 0 ) {
      x . add ( c ) ;
    }
    if ( c == 100 ) {
      x . add ( c ) ;
    }
    if ( c >= 1 && c <= 9 ) {
      if ( d == 0 ) {
        d ++ ;
        x . add ( c ) ;
      }
    }
    if ( c >= 10 && c <= 99 ) {
      if ( c % 10 == 0 ) {
        if ( e == 0 ) {
          e ++ ;
          x . add ( c ) ;
        }
      }
      else {
        if ( d == 0 && f == 0 && e == 0 ) {
          f ++ ;
          x . add ( c ) ;
          g = x . size ( ) ;
        }
      }
    }
  }
  if ( e >= 1 && f >= 1 ) {
    x . remove ( g - 1 ) ;
    f -- ;
  }
  else if ( d >= 1 && f >= 1 ) {
    x . remove ( g - 1 ) ;
  }
  System . out . println ( x . size ( ) ) ;
  for ( b = 0 ;
  b < x . size ( ) ;
  b ++ ) {
    System . out . print ( x . get ( b ) + " " ) ;
  }
  System . out . println ( ) ;
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; int a , b , c , d , e , f , g ; a = sc . nextInt ( ) ; Vector < Integer > x = new Vector < Integer > ( ) ; g = 0 ; e = 0 ; f = 0 ; d = 0 ; for ( b = 0 ; b < a ; b ++ ) { c = sc . nextInt ( ) ; if ( c == 0 ) { x . add ( c ) ; } if ( c == 100 ) { x . add ( c ) ; } if ( c >= 1 && c <= 9 ) { if ( d == 0 ) { d ++ ; x . add ( c ) ; } } if ( c >= 10 && c <= 99 ) { if ( c % 10 == 0 ) { if ( e == 0 ) { e ++ ; x . add ( c ) ; } } else { if ( d == 0 && f == 0 && e == 0 ) { f ++ ; x . add ( c ) ; g = x . size ( ) ; } } } } if ( e >= 1 && f >= 1 ) { x . remove ( g - 1 ) ; f -- ; } else if ( d >= 1 && f >= 1 ) { x . remove ( g - 1 ) ; } System . out . println ( x . size ( ) ) ; for ( b = 0 ; b < x . size ( ) ; b ++ ) { System . out . print ( x . get ( b ) + " ▁ " ) ; } System . out . println ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (update_expression (identifier))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal))))) (expression_statement (update_expression (identifier)))) alternative: (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (string_literal))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list)))))