For the dataset 3, 5, 2, 1, 6, 7, what is the median?