{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The first two strings can be mixed arbitrarily, but each must stay in its original order.\u003cbr\u003e\u003cbr\u003eFor example, consider forming \"tcraete\" from \"cat\" and \"tree\":\u003cbr\u003e\u003cbr\u003eString A: cat\u003cbr\u003eString B: tree\u003cbr\u003eString C: tcraete\u003cbr\u003e\u003cbr\u003eAs you can see, we can form the third string by alternating characters from the two strings. As a second example, consider forming \"catrtee\" from \"cat\" and \"tree\":\u003cbr\u003e\u003cbr\u003eString A: cat\u003cbr\u003eString B: tree\u003cbr\u003eString C: catrtee\u003cbr\u003e\u003cbr\u003eFinally, notice that it is impossible to form \"cttaree\" from \"cat\" and \"tree\".\u003cbr\u003e"}},{"title":"Input","value":{"format":"HTML","content":"The first line of input contains a single positive integer from 1 through 1000. It represents the number of data sets to follow. The processing for each data set is identical. The data sets appear on the following lines, one data set per line.\u003cbr\u003e\u003cbr\u003eFor each data set, the line of input consists of three strings, separated by a single space. All strings are composed of upper and lower case letters only. The length of the third string is always the sum of the lengths of the first two strings. The first two strings will have lengths between 1 and 200 characters, inclusive.\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each data set, print:\u003cbr\u003e\u003cbr\u003eData set n: yes\u003cbr\u003e\u003cbr\u003eif the third string can be formed from the first two, or\u003cbr\u003e\u003cbr\u003eData set n: no\u003cbr\u003e\u003cbr\u003eif it cannot. Of course n should be replaced by the data set number. See the sample output below for an example.\u003cbr\u003e"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e3\r\ncat tree tcraete\r\ncat tree catrtee\r\ncat tree cttaree\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eData set 1: yes\r\nData set 2: yes\r\nData set 3: no\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}