设等差数列{an}的前n项和为Sn,已知a4=12,且S8>0,S9