A new programming language is being designed. One of its new features is related to the specification of arrays. The language deals only with arrays of integers, and there are two ways of specifying new arrays:

- by explicit declaration of its size. For example: A is [1] B is [3] These sentences specify A and B as arrays of 1 and 3 elements, respectively. This implies that any sequence with the specified size is a possible value for the array.
- by inclusion of previously defined arrays. For example: C is A B D is A A SEQ is [1] A [4] C B A The size for arrays specified in this manner is determined by the size of its sub-arrays. Besides, if a specification includes the same array more than once, the subsequences in the array corresponding to the repeated parts have to hold the same value. For the aforementioned specification of A and B, we have C with size 4, D with size 2, and SEQ with size 14. Assignments are expressed in the language by the following statement: For example, < array > = < sequence of integers > B = 3 4 15 is a valid assignment for B. Notice that the assignment B = 3 4 would be inconsistent with B’s specification (which stated that B would hold a sequence of integers with size 3). The assignment D = 1 2 would also be inconsistent, since D’s specification implies that D is formed by the repetition of a size 1 sequence of integers. D = 1 1 is an example of a consistent assignment for D. In other words, for the specification the assignment SisS1S2 ...Sm, S=i1i2 ...in is said to be consistent if and only if S is a sequence i11i12 ...i1k1i21 ...i2k2 ...im1im2 ...imkm, where

2/3
• ki = |Si| (1 ≤ i ≤ m) and
• for every previously defined subsequences Sa,Sb (1 ≤ a,b ≤ m) such that Sa = Sb we have (ia1,ia2,...,iaka) = (ib1,ib2,...,ibkb).
The language designers want you to cooperate with the compiler construction effort: you have to write a program that receives as input a collection of array specifications and a sequence of assignments, and produces as output the list of inconsistent assignments.
Input
The input file is composed by a list of array specifications followed by a list of assignments. An array specification has the following format:

3/3 Sample Output C = 1 1 2 3 4. SEQ = 1 10 1 1 1 1 1 2 3 9.