I have sequence of integer elements in array "a" ,given below
a=[2,1,5,4,8,4,2,1,2,4,8,6,1,5,4,87,62,3]  
I need the output like
output=[2,1,5,4,8,6,87,62,3] 
I tried the built-in functions like set or unique but it arrange the
resulting sequence in ascending order, I want to keep the order unchanged. 
Can anyone help?
 
     
     
    