{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eWinnie the Pooh likes honey a lot. But many sorts of honey exist in the world. \r\nWinnie eats a barrel of honey in an integral number of days. Two barrels of \r\nhoney of the same sort need the same number of days to be eaten. Any event that \r\ncorresponds to the problem is one of the following:\r\n\r\n\u003col\u003e\r\n\u003cli\u003eNew sort of honey appears. It is assigned the smallest non-negative number not assigned yet.\r\nNo other information about this sort is provided.\u003c/li\u003e\r\n\r\n\u003cli\u003eWinnie investigated (empirically maybe…), that if he has to eat \u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e barrels\r\nof honey of 0th sort, \u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e of the 1st, …, \u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e\u003c/i\u003e of the \u003ci\u003ek\u003c/i\u003e-th sort, \r\nstarting at weekday \u003ci\u003eS\u003c/i\u003e, the first weekday after eating will be \u003ci\u003eE\u003c/i\u003e (0, …, \u003ci\u003ek\u003c/i\u003e\u0026nbsp;— \r\nsorts that are already known to exist; \u003ci\u003eA\u003csub\u003ei\u003c/sub\u003e\u003c/i\u003e are integers, \r\n0\u0026nbsp;≤\u0026nbsp;\u003ci\u003eA\u003csub\u003ei\u003c/sub\u003e\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;10\u003csup\u003e6\u003c/sup\u003e).\u003c/li\u003e\r\n\r\n\u003cli\u003eWinnie plans to eat \u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e barrels of honey of the 0th sort, \u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e of the 1st, \r\n… \u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e\u003c/i\u003e of the \u003ci\u003ek\u003c/i\u003e-th sort, starting at weekday \u003ci\u003eS\u003c/i\u003e, where 0, …, \u003ci\u003ek\u003c/i\u003e \r\nare sorts that are already known to exist. You have to find the first day after eating according to the information \r\nfrom preceding queries.\u003c/li\u003e\r\n\u003c/ol\u003e\r\n\u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe first line contains \u003ci\u003eN\u003c/i\u003e\u0026nbsp;— number of queries (0\u0026nbsp;≤\u0026nbsp;\u003ci\u003eN\u003c/i\u003e\u0026nbsp;≤\u0026nbsp;1000).\r\nEvents of type 1, 2, 3 are given as follows respectively:\r\n\r\n\u003cul\u003e\r\n\u003cli\u003e\u003cb\u003eAdd\u003c/b\u003e\u003c/li\u003e\r\n\r\n\u003cli\u003e\u003cb\u003eLearn\u003c/b\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e\u0026nbsp;\u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e\u0026nbsp;\u003ci\u003eA\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e\u0026nbsp;…\u0026nbsp;\u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e\u0026nbsp;S\u0026nbsp;E\u003c/i\u003e\u003c/li\u003e\r\n\r\n\u003cli\u003e\u003cb\u003eEat\u003c/b\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e\u0026nbsp;\u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e\u0026nbsp;\u003ci\u003eA\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e\u0026nbsp;…\u0026nbsp;\u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e\u0026nbsp;S\u003c/i\u003e\u003c/li\u003e\r\n\u003c/ul\u003e\r\n\r\nThe queries are given one per line.\r\n\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eIf you can determine the weekday output it. If there is more than one\r\npossibility output \"Don\u0027t know\" without quotes. If you determined some contradiction \r\nbefore this \u003cb\u003eEat\u003c/b\u003e query, output \"Already crazy\" without quotes.\r\n\u003c/div\u003e\u003c/div\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\u003e9\r\nAdd\r\nAdd\r\nLearn 5 2 Saturday Monday\r\nEat 3 3 Tuesday\r\nAdd\r\nLearn 0 9 4 Friday Thursday\r\nEat 3 0 6 Sunday\r\nLearn 3 2 10 Saturday Friday\r\nEat 3 4 11 Monday\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eDon\u0027t know\r\nSaturday\r\nAlready crazy\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}