#include using namespace std; #define rep(i,n) for(int i=0;i s; vector a(n), b(m); rep(i,n) { if (i)inf.readSpace(); a[i] = inf.readInt(i == 0 ? 1 : a[i - 1] + 1,1000000000); s.insert(a[i]); } inf.readEoln(); rep(i,m) { if (i)inf.readSpace(); b[i] = inf.readInt(i == 0 ? 1 : b[i - 1] + 1,1000000000); s.insert(b[i]); } inf.readEoln(); inf.readEof(); assert(s.size() == n + m); return 0; }