package main
import (
"fmt"
)
func main() {
var k int
if _, err := fmt.Scan(&k); err != nil {
return
}
has0 := false
has100 := false
single, ten, other := -1, -1, -1
for i := 0; i < k; i++ {
var x int
fmt.Scan(&x)
if x == 0 {
has0 = true
} else if x == 100 {
has100 = true
} else if x >= 1 && x <= 9 {
single = x
} else if x >= 10 && x <= 90 && x%10 == 0 {
ten = x
} else {
other = x
}
}
var ans []int
if has0 {
ans = append(ans, 0)
}
if has100 {
ans = append(ans, 100)
}
if single != -1 && ten != -1 {
ans = append(ans, single, ten)
} else if single != -1 {
ans = append(ans, single)
} else if ten != -1 {
ans = append(ans, ten)
} else if other != -1 {
ans = append(ans, other)
}
fmt.Println(len(ans))
for i, v := range ans {
if i > 0 {
fmt.Print(" ")
}
fmt.Print(v)
}
fmt.Println()
}