DRM building process includes a comparison step between consecutive map versions in order to assure consistence between them. You must help DRM to evaluate if a map is more detailed than another one.
A map is represented with several input lines:
An identifier is a character string without blanks.
The problem input describes several cases, each one consisting of a pair of map representations. For each case you must evaluate if the second map of the given pair is a more detailed version of the first one. The end of the input is specified by a line with the word END.
Output texts for each input case are presented in the same order that input is read. For each pair of maps named < id1 > and < id2 >, if the map named < id2 > is more detailed than the map named < id1 >, an output line of the form YES: < id2 > is a more detailed version of < id1 > must be written. In other case, the output must be of the form NO: < id2 > is not a more detailed version of < id1 >