#include#include #include #include using namespace std;#define ms(k) memset(k,0,sizeof(k))int d[8];int month[12]={31,28,31,30,31,30,31,31,30,31,30,31};//简单的枚举就ok了,数据很水 int main(){ int i,j,k,m,n,xp=1; ms(d); scanf("%d",&n); for(i=1900;i<1900+n;i++){ if((i%4==0&&i%100!=0)||i%400==0)month[1]=29; else month[1]=28; for(j=0;j<12;j++){ for(k=1;k<=month[j];k++){ if(k==13)d[xp]++; xp++; if(xp>7)xp=1; } } } printf("%d %d ",d[6],d[7]); for(i=1;i<=5;i++){ printf("%d ",d[i]); } return 0;}