this is a job for `awk`

    awk '(NR%50>14) && (NR%50<26)' inputfile