/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int[] vetor = {4,6,2,2,8,2,0};

		for (int i = 0; i < vetor.length; i++) {
		    boolean repetiu = false;

		    for (int j = 0; j < vetor.length; j++) {
		        if (vetor[i] == vetor[j] && i != j) { // verificando repeticao
		            repetiu = true; // numero repetiu
		            break; // se repetiu ao menos uma vez, entao nao eh necessario
		            // percorrer todo o vetor
		        }
		    }

		    if (!repetiu) System.out.println(" " + vetor[i] + " ");
		}
	}
}