{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"Boudreaux and Thibodeaux are student volunteers for this year\u0027s ACM South Central Region\u0027s programming contest. One of their duties is to distribute the contest T-shirts to arriving teams. The T-shirts had to be ordered in advance using an educated guess as to how many shirts of each size should be needed. Now it falls to Boudreaux and Thibodeaux to determine if they can hand out T-shirts to all the contestants in a way that makes everyone happy. "}},{"title":"Input","value":{"format":"HTML","content":"Input to this problem will consist of a (non-empty) series of up to 100 data sets. Each data set will be formatted according to the following description, and there will be no blank lines separating data sets. \r\u003cbr\u003e\r\u003cbr\u003eA single data set has 4 components: \r\u003cbr\u003e\u003col\u003e\u003cli\u003eStart line - A single line: \r\u003cbr\u003e START X\r\u003cbr\u003e \r\u003cbr\u003ewhere (1 \u0026lt;\u003d X \u0026lt;\u003d 20) is the number of contestants demanding shirts. \r\u003cbr\u003e\u003c/li\u003e\u003cli\u003eTolerance line - A single line containing X space-separated pairs of letters indicating the size tolerances of each contestant. Valid size letters are S - small, M - medium, L - large, X - extra large, T - extra extra large. Each letter pair will indicate the range of sizes that will satisfy a particular contestant. The pair will begin with the smallest size the contestant will accept and end with the largest. For example: \r\u003cbr\u003e MX\r\u003cbr\u003e \r\u003cbr\u003ewould indicate a contestant that would accept a medium, large, or extra large T-shirt. If a contestant is very picky, both letters in the pair may be the same. \r\u003cbr\u003e\u003c/li\u003e\u003cli\u003eInventory line - A single line: \r\u003cbr\u003e S M L X T\r\u003cbr\u003e \r\u003cbr\u003eindicating the number of each size shirt in Boudreaux and Thibodeaux\u0027s inventory. These values will be between 0 and 20 inclusive. \r\u003cbr\u003e\u003c/li\u003e\u003cli\u003eEnd line - A single line: \r\u003cbr\u003e END\r\u003cbr\u003e \u003c/li\u003e\u003c/ol\u003e \r\u003cbr\u003eAfter the last data set, there will be a single line: \r\u003cbr\u003e ENDOFINPUT\r\u003cbr\u003e\r\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"For each data set, there will be exactly one line of output. This line will reflect the attitude of the contestants after the T-shirts are distributed. If all the contestants were satisfied, output: \r\u003cbr\u003e\r\u003cbr\u003e T-shirts rock!\r\u003cbr\u003e\r\u003cbr\u003eOtherwise, output: \r\u003cbr\u003e I\u0027d rather not wear a shirt anyway...\r\u003cbr\u003e\r\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\u003eSTART 1\r\nST\r\n0 0 1 0 0\r\nEND\r\nSTART 2\r\nSS TT\r\n0 0 1 0 0\r\nEND\r\nSTART 4\r\nSM ML LX XT\r\n0 1 1 1 0\r\nEND\r\nENDOFINPUT\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eT-shirts rock!\r\nI\u0027d rather not wear a shirt anyway...\r\nI\u0027d rather not wear a shirt anyway...\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}