RT
for(int i=1;i<=m;++i) add2(read(),read(),read(),i);
for(int i=1;i<=m;++i){ int a=read(),b=read(),c=read(); add2(a,b,c,i); }