First element of set

how to print only first and last element of set
using cout