{"trustable":false,"sections":[{"title":"Description","value":{"format":"MD","content":"\n博览馆正在展出由世上最佳的 $m$ 位画家所画的图画。\n\nzzy在购买门票时必须说明两个数字,$a$ 和 $b$,代表他要看展览中的第 $a$ 幅至第 $b$ 幅画(包含 $a,b$)之间的所有图画,而门票的价钱就是一张图画一元。\n\nzzy希望入场后可以看到所有名师的图画。当然,他想最小化购买门票的价格。\n\n请求出他购买门票时应选择的 $a,b$,数据保证一定有解。\n\n若存在多组解,**输出 $a$ 最小的那组**。"}},{"title":"Input","value":{"format":"MD","content":"第一行两个整数 $n,m$,分别表示博览馆内的图画总数及这些图画是由多少位名师的画所绘画的。\n\n第二行包含 $n$ 个整数 $a_i$,代表画第 $i$ 幅画的名师的编号。\n"}},{"title":"Output","value":{"format":"MD","content":"一行两个整数 $a,b$。"}},{"title":"Sample 1","value":{"format":"MD","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\u003e12 5\n2 5 3 1 3 2 4 1 1 5 4 3\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2 7\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"MD","content":"#### 数据规模与约定\n\n- 对于 $30\\%$ 的数据,有 $n\\le200$,$m\\le20$。\n- 对于 $60\\%$ 的数据,有 $n\\le10^5$,$m\\le10^3$。\n- 对于 $100\\%$ 的数据,有 $1\\leq n\\le10^6$,$1 \\leq a_i \\leq m\\le2\\times10^3$。"}}]}