SP7264 DIGNUM - Digital LED Number

Description

Given a digital LED pattern of a number. You have to find the number and print it. All inputs will be valid as shown.

Input Format

Input consists of LED patterns. Each pattern is given in set of fixed number of lines. You have to read input till EOF.

Output Format

Print the number corresponding to each pattern.