for
(i
=j
=k
=
0
;i
<n
&&j
<m
&&k
<l
;)
if(a[i]<b[j])
i++;
else if(b[j]<c[k])
j++;
else if(c[k]<a[i])
k++;
else
output(i,j,k),exit;