设等差数列{an}的前n项和为Sn,若a6=s3=12,则an=______.