Problem1053--「一本通 2.3 练习 1」Immediate Decodability

### 1053: 「一本通 2.3 练习 1」Immediate Decodability

Time Limit: 1 Sec  Memory Limit: 512 MB
Submit: 2  Solved: 1

Creator:

#### Sample Input

01
10
0010
0000
9
01
10
010
0000
9

#### Sample Output

Set 1 is immediately decodable
Set 2 is not immediately decodable

#### HINT

An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all codes are in binary, that no two codes within a set of codes are the same, that each code has at least one bit and no more than ten bits, and that each set has at least two codes and no more than eight.