very soon new cell phone service provider BerLine begin work BerlandThe start customer service plan main street capital there nbase station instal they locate main street order the1st thenth leave right currently base station turn they turn base station day accord permutation p p_1 p_2 dot p_n 1 le p_i le n p_i index base station turn ith day thus n day turn base stationsEach base station characterize operating frequency f_i integer 1 24 inclusivethere important requirement operating frequency base station consider arbitrary moment time for phone owner consider base station turn access area phone set base station operate frequency unique frequency station since power phone position know advance mean nonempty subsegment turn base station operate frequency unique station subsegmentfor example let look case n 7 n station turn frequency equal f 1 2 1 3 1 2 1 consider subsegment base station base station unique frequency subsegment however f 1 2 1 2 3 2 1 unique frequency segment 1 2 1 2 index 1 index 4 inclusiveYour task assign frequency 1 24 n base station way frequency requirement meet moment remember base station turn order give permutation p