Consider the set S={1,2,3,4,12,13,14, ..., 1234\}, which consists of all positive integers whose digits strictly increase from left to right, and all the digits are from 1 to 4. This set is finite. What is the median of the set?