import java.io.*;
class ex4
{
public static void main ( String args[] ) {
int[] vet1 = new int[10];
int[] vet2 = new int[10];
vet1[0] = 0;
vet1[1] = 1;
vet1[2] = 2;
vet1[3] = 3;
vet1[4] = 4;
vet1[5] = 5;
vet1[6] = 6;
vet1[7] = 7;
vet1[8] = 8;
vet1[9] = 9;
vet2[0] = 5;
vet2[1] = 4;
vet2[2] = 3;
vet2[3] = 2;
vet2[4] = 1;
vet2[5] = 12;
vet2[6] = 11;
vet2[7] = 10;
vet2[8] = 9;
vet2[9] = 8;
imprime( vet1 );
imprime( vet2 );
Uniao( vet1, vet2 );
diferenca( vet1, vet2 );
diferenca( vet1, vet2 );
Contem( vet1, vet2 );
Contem( vet2, vet1 );
}
public static void imprime( int[] vet )
{
for ( int inc = 0; inc < vet.length; inc++ )
System.out.println( vet[ inc ] );
}
public static void Uniao( int[] vet1, int[] vet2 )
{
for ( int inc = 0; inc < vet.length; inc++ )
System.out.println( String.valueOf( vet1[ inc ] + vet2[ inc ] ) );
}
public static void diferenca( int[] vet1, int[] vet2 )
{
for ( int inc = 0; inc < vet.length; inc++ )
System.out.println( String.valueOf( vet1[ inc ] - vet2[ inc ] ) );
}
public static void Contem( int[] vet1, int[] vet2 )
{
for ( int inc = 0; inc < aivet.length; inc++ ) {
if ( vet2 == vet1 ) {
System.out.println( String.valueOf( vet1[ inc ] ) + " U " + String.valueOf( vet2[ inc ] ) );
}
}
}
}