#include<iostream>
using namespace std;
bool judge(int );
int month[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};
int main(){
int week=6;
int cnt=0;
for(int i=2000;i<=2020;i++){
if(judge(i)){
month[2]=29;
}else{
month[2]=28;
}
for(int j=1;j<=12;j++){
if(i==2020&&j==10){
break;
}
cnt++;
cnt+=month[j];
if(week==1){
cnt--;
}
cnt+=month[j]/7;
week+=month[j]%7;
if(week>=8){
cnt++;
}
week=(week+6)%7+1;
}
}
cout << "一共跑了:" << cnt+2 << "天" << endl;
cout << "最后一天是:" << week << endl;
}
bool judge(int n){
return ((n%4==0&&n%100!=0)||n%400==0);
}