typedef A[500010]; A a,b,c,la,lb,li; A sa,sb,d={1},t; n,y; f(a,i){ if(t[a]