{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cscript type\u003d\u0027text/x-mathjax-config\u0027\u003eMathJax.Hub.Config({tex2jax: { inlineMath: [[\u0027$\u0027,\u0027$\u0027]] } }); \u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027 src\u003d\u0027https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\u0027\u003e\u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027\u003esetTimeout(function(){MathJax.Hub.Queue([\u0027Typeset\u0027, MathJax.Hub, \u0027left_view\u0027]);}, 2000);\u003c/script\u003e\n\u003cdiv class\u003d\"panel_content\"\u003e\n You will be given two set A and B. Merge this two set and print the identical elements in increasing order\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"Each set of input data is divided into three lines, the first line contains two numbers n, m which respectively represent the number of elements of the set A and the set B. The second line contains n elements of set A and the third line contains m elements of set B. Each element is an integer that does not exceed the int range, and each element is separated by a space. Process the input till EOF.\n\nThere will be maximum 20000 number of elements in a test data."}},{"title":"Output","value":{"format":"HTML","content":"For each group of data, one row of data is output, indicating that the merged collection requires output from small to large. Each element is separated by a space."}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1 2\n1\n2 3\n1 2\n1\n1 2\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e1 2 3\n1 2\u003c/pre\u003e"}}]}