{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003e小熊维尼非常喜欢蜂蜜。但世界上有许多种类的蜂蜜。\n维尼在整数天内吃完一桶蜂蜜。同一种类的两桶蜂蜜需要相同的天数才能吃完。与问题对应的任何事件都是以下之一:\n\n\u003col\u003e\n\u003cli\u003e出现新种类的蜂蜜。它被分配为尚未分配的最小非负数。\n没有提供有关此种类的其他信息。\u003c/li\u003e\n\n\u003cli\u003e维尼调查(也许是经验性的……),如果他必须在第0种蜂蜜吃\u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e桶,在第1种蜂蜜吃\u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e桶,……在第\u003ci\u003ek\u003c/i\u003e种蜂蜜吃\u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e\u003c/i\u003e桶,从星期\u003ci\u003eS\u003c/i\u003e开始,那么吃完后的第一个星期日将是\u003ci\u003eE\u003c/i\u003e(0, …, \u003ci\u003ek\u003c/i\u003e — 已知存在的种类;\u003ci\u003eA\u003csub\u003ei\u003c/sub\u003e\u003c/i\u003e为整数,0 ≤ \u003ci\u003eA\u003csub\u003ei\u003c/sub\u003e\u003c/i\u003e ≤ 10\u003csup\u003e6\u003c/sup\u003e)。\u003c/li\u003e\n\n\u003cli\u003e维尼计划在星期\u003ci\u003eS\u003c/i\u003e开始吃第0种蜂蜜\u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e桶,在第1种蜂蜜吃\u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e桶,…在第\u003ci\u003ek\u003c/i\u003e种蜂蜜吃\u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e\u003c/i\u003e桶,其中0, …, \u003ci\u003ek\u003c/i\u003e是已知存在的种类。你必须根据前面查询的信息找到吃完后的第一天。\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/div\u003e\u003c/div\u003e"}},{"title":"输入","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003e第一行包含\u003ci\u003eN\u003c/i\u003e — 查询数量(0 ≤ \u003ci\u003eN\u003c/i\u003e ≤ 1000)。\n类型1、2、3的事件分别如下给出:\n\n\u003cul\u003e\n\u003cli\u003e\u003cb\u003e添加\u003c/b\u003e\u003c/li\u003e\n\n\u003cli\u003e\u003cb\u003e学习\u003c/b\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e … \u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e S E\u003c/i\u003e\u003c/li\u003e\n\n\u003cli\u003e\u003cb\u003e吃\u003c/b\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e0\u003c/sub\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e \u003ci\u003eA\u003c/i\u003e\u003csub\u003e2\u003c/sub\u003e … \u003ci\u003eA\u003csub\u003ek\u003c/sub\u003e S\u003c/i\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n每行给出一个查询。\n\u003c/div\u003e\u003c/div\u003e"}},{"title":"输出","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003e如果你能确定星期几,输出它。如果有多种可能性,输出“不知道”(不带引号)。如果在此次吃蜂蜜查询之前确定了某种矛盾,输出“已经疯了”(不带引号)。\n\u003c/div\u003e\u003c/div\u003e"}},{"title":"示例1","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"}}]}