import java.io.*;
import java.util.*;
public class ListDuplicateWords {
public static void main(String args[]) {
List<String> words = new ArrayList<String>();
Scanner in = new Scanner(System.in);
String str;
int n,i,j;
n = in.nextInt();
in.nextLine();
for(i=0;i<n;i++){
str = in.nextLine();
words.add(str);
}
for(i=0;i<words.size()-1;i++){
for(j=i+1;j<words.size();j++){
if(words.get(i).compareTo(words.get(j))==0){
words.remove(j);
j--;
}
}
}
System.out.print(words);
}
}
import java.util.*;
public class ListDuplicateWords {
public static void main(String args[]) {
List<String> words = new ArrayList<String>();
Scanner in = new Scanner(System.in);
String str;
int n,i,j;
n = in.nextInt();
in.nextLine();
for(i=0;i<n;i++){
str = in.nextLine();
words.add(str);
}
for(i=0;i<words.size()-1;i++){
for(j=i+1;j<words.size();j++){
if(words.get(i).compareTo(words.get(j))==0){
words.remove(j);
j--;
}
}
}
System.out.print(words);
}
}