send non unique values from one container to another container

hi,

Any one tell me that how can i send non unique from one container to anonther container.

Ex :

con=(1,1,2,3,3,5)

i want to send only duplicate records(1,3)