In our programming contests, the scoreboard is an HTML file. Lately, the coaches have received complaints that the total number of problems solved is not computed correctly. You are asked to write a program to check whether these complaints are valid.
The input consists of multiple test cases. Each test case consists of a single line. The end of the input is signalled by a line consisting of the word END. This line should not be processed. All other lines of input consist of HTML, namely the row of a table. Consider, for example, the following line.
<tr><td align=center>1</td><td align=left>Jane Doe</td><td align=center>1/39</td><td align=center>2/135</td><td align=center>1/221</td><td align=center>1/52</td><td align=center>1/68</td><td align=center> </td><td align=center>8/--</td><td align=center>1/34</td><td align=center>7</td><td align=center>687</td></tr>In a browser, this line is rendered as
1 | Jane Doe | 1/39 | 2/135 | 1/221 | 1/52 | 1/68 | 8/-- | 1/34 | 6 | 687 |
For each line of input, print correct if the the total number of solved problems is correct, and print incorrect otherwise.
<tr><td align=center>1</td><td align=left>Jane Doe</td><td align=center>1/39</td><td align=center>2/135</td><td align=center>1/221</td><td align=center>1/52</td><td align=center>1/68</td><td align=center>1/118</td><td align=center>8/--</td><td align=center>1/34</td><td align=center>7</td><td align=center>687</td></tr> <tr><td align=center>2</td><td align=left>John Doe</td><td align=center>1/22</td><td align=center>3/232</td><td align=center> </td><td align=center>1/140</td><td align=center>1/83</td><td align=center>1/194</td><td align=center>2/--</td><td align=center>2/43</td><td align=center>4</td><td align=center>774</td></tr> <tr><td align=center>3</td><td align=left>Ron Burgundy</td><td align=center>1/17</td><td align=center>3/296</td><td align=center>1/--</td><td align=center>3/83</td><td align=center>1/58</td><td align=center>2/196</td><td align=center>2/--</td><td align=center>2/78</td><td align=center>6</td><td align=center>848</td></tr> END
correct incorrect correct