CF305A Strange Addition

Description

Unfortunately, Vasya can only sum pairs of integers ( $ a $ , $ b $ ), such that for any decimal place at least one number has digit $ 0 $ in this place. For example, Vasya can sum numbers $ 505 $ and $ 50 $ , but he cannot sum $ 1 $ and $ 4 $ . Vasya has a set of $ k $ distinct non-negative integers $ d_{1},d_{2},...,d_{k} $ . Vasya wants to choose some integers from this set so that he could sum any two chosen numbers. What maximal number of integers can he choose in the required manner?

Input Format

The first input line contains integer $ k $ $ (1

Output Format

In the first line print a single integer $ n $ the maximum number of the chosen integers. In the second line print $ n $ distinct non-negative integers — the required integers. If there are multiple solutions, print any of them. You can print the numbers in any order.